Capabilities/moodle/course:view: Difference between revisions

From MoodleDocs
No edit summary
(info on different meaning in 2.0 thanks to Ashley Holman MDL-24820)
Line 1: Line 1:
*This allows a user to view a course.
Note: This capability has a different meaning in Moodle 2.0 onwards compared with pre-2.0.
*Users with this capability are listed as course participants unless the role is a hidden assignment.
*The default teacher, non-editing teacher, student and guest roles have this capability set to allow. It is not set for the default administrator role, since this role has the [[Capabilities/moodle/site:doanything|moodle/site:doanything]] capability instead.


====Legacy Role Default Settings====
==moodle/course:view pre-2.0==
{| border="1" cellspacing="0" cellpadding="2"
 
|-
* This capability allows a user to view a course.
! Legacy Role !! Inherit !! Allow !! Prevent !! Prohibit
* Users with this capability are listed as course participants unless the role is a hidden assignment.
|-
* The default teacher, non-editing teacher, student and guest roles have this capability set to allow. It is not set for the default administrator role, since this role has the [[Capabilities/moodle/site:doanything|moodle/site:doanything]] capability instead.
| Administrator || - || X || - || -
 
|-
==moodle/course:view in Moodle 2.0==
| Course Creator || X || - || - || -
 
|-
{{Moodle 2.0}}*This capability allows a user to view a course without being enrolled in it.
| Teacher || - || X || - || -
* Users with this capability are NOT listed as course participants.
|-
* The default manager role has this capability set to allow. For all other default roles, the capability is not set.
| Non-editing Teacher || - || X || - || -
|-
| Student || - || X || - || -
|-
| Guest || - || X || - || -
|-
| Authenticated User || X || - || - || -
|}


==Examples of capability usage==
==Examples of capability usage==

Revision as of 13:30, 26 October 2010

Note: This capability has a different meaning in Moodle 2.0 onwards compared with pre-2.0.

moodle/course:view pre-2.0

  • This capability allows a user to view a course.
  • Users with this capability are listed as course participants unless the role is a hidden assignment.
  • The default teacher, non-editing teacher, student and guest roles have this capability set to allow. It is not set for the default administrator role, since this role has the moodle/site:doanything capability instead.

moodle/course:view in Moodle 2.0

Template:Moodle 2.0*This capability allows a user to view a course without being enrolled in it.

  • Users with this capability are NOT listed as course participants.
  • The default manager role has this capability set to allow. For all other default roles, the capability is not set.

Examples of capability usage