How do I hide a block from a user role

How do I hide a block from a user role

by Marius Hammer -
Number of replies: 0

Hey, I'm an sure this question has been asked before and there seems to be some documentation on this, however I can not figure it out. It seems like a very complicated thing to do. I've read other posts and documentation about the subject but unable to find an easy solution.

I am trying to configure my default dashboard site, where I have some blocks that I only want certain user roles to see, etc. only admins or everyone except authenticated users/students.

How can this be done step by step? It should be a very simple thing to do.

I've tried playing a bit with the permission setting for a block which you can access when having 'blocks editing'. Here I've tried setting the View block (moodle/block:view) where I have removed every role except manager. Yet the Block is visible for all users like Authenticated Users/Students.

Lets say for example, I add two HTML Blocks with title 'Message-1' and 'Message-2'.
Message-1 is to be shown on the dashboard of Manager,Course Creator and Teacher only
Message-2 is to be shown on the dashboard of authenticated User and Students.

How can this be done?


Average of ratings: -