Block permissions: Difference between revisions
From MoodleDocs
Helen Foster (talk | contribs) (see also video link added) |
Helen Foster (talk | contribs) (block capabilities, hiding a block from guests) |
||
Line 1: | Line 1: | ||
==Block capabilities== | |||
== | *[[Capabilities/moodle/site:manageblocks|moodle/site:manageblocks]] | ||
*[[Capabilities/moodle/my:manageblocks|moodle/my:manageblocks]] (from 1.8 onwards) | |||
# | *[[Capabilities/moodle/tag:editblocks|moodle/tag:editblocks]] (from 1.9 onwards) | ||
# Click | *[[Capabilities/moodle/block:view|moodle/block:view]] (from 1.9 onwards) | ||
# | |||
# | ==Hiding a block from guests== | ||
{{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. | |||
To hide a particular block from guests: | |||
# 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 [[Capabilities/moodle/block:view|moodle/block:view]] to prevent. | |||
# Click the "Save changes" button. | # 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]]. | |||
==See also== | ==See also== |
Revision as of 08:20, 6 March 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
Template:Moodle 1.9In 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:
- 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.