mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basic conversion of old wiki to new roles framework
- Loading branch information
skodak
committed
Sep 10, 2006
1 parent
07642ae
commit ee3cc99
Showing
8 changed files
with
160 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php // $Id$ | ||
/** | ||
* Capability definitions for the wiki module. | ||
* | ||
* For naming conventions, see lib/db/access.php. | ||
*/ | ||
$mod_wiki_capabilities = array( | ||
|
||
'mod/wiki:view' => array( | ||
|
||
'captype' => 'read', | ||
'contextlevel' => CONTEXT_MODULE, | ||
'legacy' => array( | ||
'guest' => CAP_ALLOW, | ||
'student' => CAP_ALLOW, | ||
'teacher' => CAP_ALLOW, | ||
'editingteacher' => CAP_ALLOW, | ||
'coursecreator' => CAP_ALLOW, | ||
'admin' => CAP_ALLOW | ||
) | ||
), | ||
|
||
'mod/wiki:participate' => array( | ||
|
||
'captype' => 'write', | ||
'contextlevel' => CONTEXT_MODULE, | ||
'legacy' => array( | ||
'guest' => CAP_PREVENT, | ||
'student' => CAP_ALLOW, | ||
'teacher' => CAP_ALLOW, | ||
'editingteacher' => CAP_ALLOW, | ||
'coursecreator' => CAP_PREVENT, | ||
'admin' => CAP_PREVENT | ||
) | ||
), | ||
|
||
'mod/wiki:manage' => array( | ||
|
||
'captype' => 'write', | ||
'contextlevel' => CONTEXT_MODULE, | ||
'legacy' => array( | ||
'guest' => CAP_PREVENT, | ||
'student' => CAP_PREVENT, | ||
'teacher' => CAP_ALLOW, | ||
'editingteacher' => CAP_ALLOW, | ||
'coursecreator' => CAP_PREVENT, | ||
'admin' => CAP_ALLOW | ||
) | ||
), | ||
|
||
'mod/wiki:manageallgroups' => array( | ||
|
||
'captype' => 'write', | ||
'contextlevel' => CONTEXT_MODULE, | ||
'legacy' => array( | ||
'guest' => CAP_PREVENT, | ||
'student' => CAP_PREVENT, | ||
'teacher' => CAP_PREVENT, | ||
'editingteacher' => CAP_ALLOW, | ||
'coursecreator' => CAP_PREVENT, | ||
'admin' => CAP_ALLOW | ||
) | ||
) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.