Hiding Blocks from Student Role

Re: Hiding Blocks from Student Role

by Dave Catlin -
Number of replies: 1

Hi Everyone,

I have a site aimed at supporting teachers needing to learn how to use educational robots.  Apart from Administrator I only have two roles Guests and Members.  I want to hide the all the blocks from Guests and Teachers.  The way our system works there is no need for them and I want to shield the user from Moodle's complexity.  This is not just on the front page, it is all pages.  All they need to be able to do is explore the horizontal menu options and find the information they need.

  1. Is it possible to hide the blocks from everyone but the Administrator?
  2. How is it done?
In reply to Dave Catlin

Re: Hiding Blocks from Student Role

by Алексей Кадин -

Hi, Dave.


1. Of course.

2. You go to Site Administration-->Users-->Permissions-->Define Roles and edit your Guest role and Teacher role. In each case your find the capability "moodle/block:view" ("View block"), it is near the end of the long list of capabilities - and you set it to "prohibit" (it is "allow" by default). And, of course, do not forget to save changes. It is done - no blocks visible for teachers and guests.