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.
Browse files
Browse the repository at this point in the history
"MDL-19181, display plugin instances based on capabilities"
- Loading branch information
dongsheng
committed
Aug 7, 2009
1 parent
c86dde2
commit 99e2c8b
Showing
2 changed files
with
35 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
$repository_flickr_public_capabilities = array( | ||
|
||
'repository/flickr:view' => array( | ||
'captype' => 'read', | ||
'contextlevel' => CONTEXT_SYSTEM, | ||
'legacy' => array( | ||
'student' => CAP_ALLOW, | ||
'teacher' => CAP_ALLOW, | ||
'editingteacher' => 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
function xmldb_repository_flickr_public_upgrade($oldversion) { | ||
|
||
global $CFG, $DB; | ||
|
||
$dbman = $DB->get_manager(); | ||
$result = true; | ||
|
||
/// And upgrade begins here. For each one, you'll need one | ||
/// block of code similar to the next one. Please, delete | ||
/// this comment lines once this file start handling proper | ||
/// upgrade code. | ||
|
||
/// if ($result && $oldversion < YYYYMMDD00) { //New version in version.php | ||
/// $result = result of database_manager methods | ||
/// } | ||
|
||
return $result; | ||
} |