Block permissions: Difference between revisions
From MoodleDocs
No edit summary |
Helen Foster (talk | contribs) m (formatting, category) |
||
Line 1: | Line 1: | ||
=Hiding blocks from certain users= | ==Hiding blocks from certain users== | ||
{{Moodle 1.9}} | {{Moodle 1.9}}From Moodle 1.9 onwards, there is a [[Capabilities/moodle/block:view|moodle/block:view]] capability which allows control of which users can view blocks from the roles system. This feature works with all blocks (including third party blocks) | ||
From Moodle 1.9 there is a [[Capabilities/moodle/block:view|moodle/block:view]] capability which allows control of which users can view blocks from the roles system. This feature works with all blocks (including third party blocks) | |||
===Example: Hiding course block from guests=== | ===Example: Hiding course block from guests=== | ||
# Login as a user who has permission to control blocks on the page you are interested in (e.g. teacher/admin) | |||
# At the top of every block there should be a face-and-mask icon, the mouseover tooltop says "assign roles", click this icon on the top of the course block | |||
# Click on "override roles" to switch to viewing role overrides | |||
# Choose the "Guest" role from the list of roles | |||
# Change the [[Capabilities/moodle/block:view|View Block]] permission to prevent | |||
# Save changes | |||
# Guests should no longer be able to see the course block | |||
[[Category:Roles]] | |||
[[Category:Block]] | [[Category:Block]] |
Revision as of 18:49, 7 November 2007
Hiding blocks from certain users
Template:Moodle 1.9From Moodle 1.9 onwards, there is a moodle/block:view capability which allows control of which users can view blocks from the roles system. This feature works with all blocks (including third party blocks)
Example: Hiding course block from guests
- Login as a user who has permission to control blocks on the page you are interested in (e.g. teacher/admin)
- At the top of every block there should be a face-and-mask icon, the mouseover tooltop says "assign roles", click this icon on the top of the course block
- Click on "override roles" to switch to viewing role overrides
- Choose the "Guest" role from the list of roles
- Change the View Block permission to prevent
- Save changes
- Guests should no longer be able to see the course block