Note: You are currently viewing documentation for Moodle 3.7. Up-to-date documentation for the latest stable version of Moodle may be available here: Block permissions.

Block permissions: Difference between revisions

From MoodleDocs
m (French link)
(see also video link added)
Line 1: Line 1:
==Hiding blocks from certain users==
{{Moodle 1.9}}In 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).
{{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)
 
===Example: Hiding course block from guests===
==Example: Hiding a 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)
# 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
# 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
# Click on "override roles" to switch to viewing role overrides.
# Choose the "Guest" role from the list of roles
# Choose the "Guest" role from the list of roles.
# Change the [[Capabilities/moodle/block:view|View Block]] permission to prevent
# Change the [[Capabilities/moodle/block:view|View Block]] permission to prevent.
# Save changes
# Click the "Save changes" button.
# Guests should no longer be able to see the course block
# Guests should no longer be able to see the course block.
 
==See also==
 
*[http://www.youtube.com/watch?v=x2zgpjSsbbM Video showing how to hide a block from guests in Moodle v1.9]


[[Category:Roles]]
[[Category:Roles]]

Revision as of 13:49, 15 January 2008

Template:Moodle 1.9In 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 a course block from guests

  1. Login as a user who has permission to control blocks on the page you are interested in (e.g. teacher/admin).
  2. 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.
  3. Click on "override roles" to switch to viewing role overrides.
  4. Choose the "Guest" role from the list of roles.
  5. Change the View Block permission to prevent.
  6. Click the "Save changes" button.
  7. Guests should no longer be able to see the course block.

See also