"MDL-19181, display plugin instances based on capabilities"

This commit is contained in:
dongsheng 2009-08-07 10:02:47 +00:00
parent 68bd9e5e13
commit c86dde2ec5
66 changed files with 584 additions and 39 deletions

View 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
)
)
);

View file

@ -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');
}
}
?>

View file

@ -1,2 +1,2 @@
<?php
$plugin->version = 2009031000;
$plugin->version = 2009080101;