forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial conversion of workshop to new roles and capabilities framewor…
…k; groups are not functional yet (did they ever work properly ?)
- Loading branch information
skodak
committed
Sep 6, 2006
1 parent
b649a19
commit 6b9a1fe
Showing
16 changed files
with
405 additions
and
273 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
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,50 @@ | ||
<?php // $Id$ | ||
/** | ||
* Capability definitions for the workshop module. | ||
* | ||
* For naming conventions, see lib/db/access.php. | ||
*/ | ||
$mod_workshop_capabilities = array( | ||
|
||
'mod/workshop:view' => array( | ||
|
||
'captype' => 'read', | ||
'contextlevel' => CONTEXT_MODULE, | ||
'legacy' => array( | ||
'guest' => CAP_PREVENT, | ||
'student' => CAP_ALLOW, | ||
'teacher' => CAP_ALLOW, | ||
'editingteacher' => CAP_ALLOW, | ||
'coursecreator' => CAP_ALLOW, | ||
'admin' => CAP_ALLOW | ||
) | ||
), | ||
|
||
'mod/workshop:participate' => array( | ||
|
||
'captype' => 'write', | ||
'contextlevel' => CONTEXT_MODULE, | ||
'legacy' => array( | ||
'guest' => CAP_PREVENT, | ||
'student' => CAP_ALLOW, | ||
'teacher' => CAP_PREVENT, | ||
'editingteacher' => CAP_PREVENT, | ||
'coursecreator' => CAP_PREVENT, | ||
'admin' => CAP_PREVENT | ||
) | ||
), | ||
|
||
'mod/workshop:manage' => array( | ||
|
||
'captype' => 'write', | ||
'contextlevel' => CONTEXT_MODULE, | ||
'legacy' => array( | ||
'guest' => CAP_PREVENT, | ||
'student' => CAP_PREVENT, | ||
'teacher' => CAP_ALLOW, | ||
'editingteacher' => CAP_ALLOW, | ||
'coursecreator' => CAP_ALLOW, | ||
'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
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
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
Oops, something went wrong.