How to deny a particular student by accessing a block?

Re: How to deny a particular student by accessing a block?

by Helen Foster -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hello,

One way would be to create a new role with block ticked as context type where the role may be assigned and the view block capability set to prohibit. You can then assign the role to the user in the block context.

Please see the documentation Creating custom roles and Assign roles for more details.