Moodle Blog

Control who sees a block on your Moodle front page

..or “How to let teachers see a block but not students” – a request often asked over on the forums at moodle.orgIf you have Moodle 1.9 you can control whether guests (non-logged in users) can see blocks or not. It is also possible, with some role and permisson editing, to allow a certain group of people access to a block while preventing others. The video below shows how to do it – but if, like me, you can’t get youtube in your area – there are instructions beneath the video!

  1. Make your block!
  2. With the editing turned on, click on the “assign roles” icon and then click on “override permissions” You need to click guest and change the button to prevent (viewblock) When you have saved the changes, non-logged in users will not be able to see this block
  3. If you only want your teachers (or a certain group of users to see it) you need first to create a new role. (Just because your teachers are teachers in the Real World, Moodle won’t recognise them as such on your front page and so you need to specify who precisely is allowed to view this block.)
  4. In site admistration>users>permissions>define roles, go to the bottom of the screen and click “add a new role”
  5. Make a new , plain, basic role – call it what you like – teacher block viewer, for example.
  6. Save this role and then go back to your front page block and click the “assign roles” icon again
  7. You need to define who can view this block by assigning them the role of “teacher block viewer” in this block
  8. Click the blue words for your role (teacher block viewer) and select from the box on the right the people you want to allow to see the block. Move them with the arrow to the box on the left.
  9. Click the override permissions tab (as you did for the student) For the teacher block viewer, press the allow button and for the authenticated user press the prevent button.
  10. Some people have their default front page role as student – if this is you, then in override permissions, click prevent for the student role.
  11. Try it out!
Dieser Beitrag wurde am Saturday, 10. October 2009 um 22:05 Uhr veröffentlicht und wurde unter der Kategorie Moodle abgelegt. Du kannst die Kommentare zu diesen Eintrag durch den RSS-Feed verfolgen. Du hast die Möglichkeit einen Kommentar zu hinterlassen, oder einen Trackback von deinem Weblog zu senden.

«  –  »


  1. Mary, thanks for your latest Moodle video and for adding instructions and a video link to Thanks also for pointing out a different way of doing things than I would have come up with!

    Comment: Helen Foster – 22. October 2009 @ 10:23 am

  2. Will this work in the latest version of Moodle?

    Comment: Fred Nock – 01. December 2015 @ 5:25 pm

  3. Here is the information from the Moodle 3.0 documentation, the latest version:

    Comment: admin – 01. December 2015 @ 6:09 pm

Leave a comment


The Blog Posts

Search the blog



WP-Design: Vlad -- Powered by WordPress -- XHTML 1.0