Moodle Blog

Control who sees a block on your Moodle front page

Saturday, 10. October 2009 von admin

..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!


The Blog Posts

Search the blog



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