mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
"MDL-19181, display plugin instances based on capabilities"
This commit is contained in:
parent
68bd9e5e13
commit
c86dde2ec5
66 changed files with 584 additions and 39 deletions
15
repository/upload/db/access.php
Normal file
15
repository/upload/db/access.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
$repository_upload_capabilities = array(
|
||||
|
||||
'repository/upload:view' => array(
|
||||
'captype' => 'read',
|
||||
'contextlevel' => CONTEXT_SYSTEM,
|
||||
'legacy' => array(
|
||||
'student' => CAP_ALLOW,
|
||||
'teacher' => CAP_ALLOW,
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'admin' => CAP_ALLOW
|
||||
)
|
||||
)
|
||||
);
|
|
@ -69,7 +69,7 @@ class repository_upload extends repository {
|
|||
* @return string
|
||||
*/
|
||||
public function get_name(){
|
||||
return get_string('repositoryname', 'repository_upload');;
|
||||
return get_string('repositoryname', 'repository_upload');
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
<?php
|
||||
$plugin->version = 2009031000;
|
||||
$plugin->version = 2009080101;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue