Block permissions: Difference between revisions
From MoodleDocs
No edit summary |
Helen Foster (talk | contribs) (image added) |
||
Line 9: | Line 9: | ||
{{Moodle 1.9}}In Moodle 1.9 onwards, the capability [[Capabilities/moodle/block:view|moodle/block:view]] allows control of which users can view blocks. This feature works with all blocks, including contributed blocks. | {{Moodle 1.9}}In Moodle 1.9 onwards, the capability [[Capabilities/moodle/block:view|moodle/block:view]] allows control of which users can view blocks. This feature works with all blocks, including contributed blocks. | ||
[[Image:Recent activity block header.png|thumb|Recent activity block header]] | |||
To hide a particular block from guests: | To hide a particular block from guests: | ||
# On the course homepage, click the "Turn editing on" button at the top-right of the page. | |||
# Access the assign roles page via the assign roles icon (a face and mask) in the header of the block to be hidden. | # Access the assign roles page via the assign roles icon (a face and mask) in the header of the block to be hidden. | ||
# Click the "Override permissions" tab. | # Click the "Override permissions" tab. |
Revision as of 10:10, 27 June 2008
Block capabilities
- moodle/site:manageblocks
- moodle/my:manageblocks (from 1.8 onwards)
- moodle/tag:editblocks (from 1.9 onwards)
- moodle/block:view (from 1.9 onwards)
Hiding a block from guests
Moodle1.9
In Moodle 1.9 onwards, the capability moodle/block:view allows control of which users can view blocks. This feature works with all blocks, including contributed blocks.
To hide a particular block from guests:
- On the course homepage, click the "Turn editing on" button at the top-right of the page.
- Access the assign roles page via the assign roles icon (a face and mask) in the header of the block to be hidden.
- Click the "Override permissions" tab.
- Select the guest role.
- Set the capability moodle/block:view to prevent.
- Click the "Save changes" button.
Note: By default, only administrators are able to override permissions. Instructions on enabling teachers to override permissions can be found in Override permissions.