Capabilities/moodle/category:manage: Difference between revisions
From MoodleDocs
Abel Camacho (talk | contribs) No edit summary |
No edit summary |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
This capability was introduced in Moodle 1.9.4 to replace the separate capabilities moodle/category:create, moodle/category:update and moodle/category:delete. | {{Moodle 1.9}}This capability was introduced in Moodle 1.9.4 to replace the separate capabilities moodle/category:create, moodle/category:update and moodle/category:delete. | ||
*This allows a user to create, update and delete course categories. | *This allows a user to create, update and delete course categories. | ||
Line 15: | Line 15: | ||
#* [[Capabilities/moodle/course:delete|moodle/course:delete]] in all of those courses, and moodle/category:manage in all of the child categories, or | #* [[Capabilities/moodle/course:delete|moodle/course:delete]] in all of those courses, and moodle/category:manage in all of the child categories, or | ||
#* [[Capabilities/moodle/course:create|moodle/course:create]] and moodle/category:manage in some other category that is not a child of this one. (Except that, if this category contains no sub-categories, we don't check moodle/category:manage in the other category.) | #* [[Capabilities/moodle/course:create|moodle/course:create]] and moodle/category:manage in some other category that is not a child of this one. (Except that, if this category contains no sub-categories, we don't check moodle/category:manage in the other category.) | ||
05012012 In order to get Category:Manage to work I needed to give the user "Manage Blocks on Page" (this was Moodle 2.0 and 2.1) as well. If I did not, the user was unable to "Category:Manage". | |||
====Legacy Role Default Settings==== | ====Legacy Role Default Settings==== | ||
Line 24: | Line 25: | ||
| Administrator || - || X || - || - | | Administrator || - || X || - || - | ||
|- | |- | ||
| Course Creator || | | Course Creator || - || X || - || - | ||
|- | |- | ||
| Teacher || | | Teacher || - || X || - || - | ||
|- | |- | ||
| Non-editing Teacher || X || - || - || - | | Non-editing Teacher || X || - || - || - | ||
Line 43: | Line 44: | ||
[[Category:Capabilities|Category]] | [[Category:Capabilities|Category]] | ||
[[Category:Course]] | [[Category:Course]] | ||
[[fr:Capabilities/moodle/category:manage]] |
Latest revision as of 09:54, 6 January 2012
Moodle1.9
This capability was introduced in Moodle 1.9.4 to replace the separate capabilities moodle/category:create, moodle/category:update and moodle/category:delete.
- This allows a user to create, update and delete course categories.
- This capability may only be applied in the system context, or in category context, to allow management of subcategories.
The exact rules enforced for various actions are: (Remember that the parent of a given category may be either the system context, or another category.)
- To add a new category, you need moodle/category:manage in the parent of the category you are adding to.
- To browse a category and the courses it contains, you don't normally need any special capabilities, except that
- to view hidden courses, you need moodle/course:viewhiddencourses, and
- to see hidden categories you need moodle/category:viewhiddencategories
- To update a category's name, description, and/or visiblility, you need moodle/category:manage in the category itself.
- To move a category from one place in the tree to another, you need moodle/category:manage in both the old and new parent categories (and you are not allowed to move a category to be a descendant of itself!)
- To delete a category, you need moodle/category:manage in the parent category and the category itself. In addition, if the category or any of its subcategories contains any courses you need either:
- moodle/course:delete in all of those courses, and moodle/category:manage in all of the child categories, or
- moodle/course:create and moodle/category:manage in some other category that is not a child of this one. (Except that, if this category contains no sub-categories, we don't check moodle/category:manage in the other category.)
05012012 In order to get Category:Manage to work I needed to give the user "Manage Blocks on Page" (this was Moodle 2.0 and 2.1) as well. If I did not, the user was unable to "Category:Manage".
Legacy Role Default Settings
Legacy Role | Inherit | Allow | Prevent | Prohibit |
---|---|---|---|---|
Administrator | - | X | - | - |
Course Creator | - | X | - | - |
Teacher | - | X | - | - |
Non-editing Teacher | X | - | - | - |
Student | X | - | - | - |
Guest | X | - | - | - |
Authenticated User | X | - | - | - |