Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1034421
)
MDL-58273 enrol_ldap: Fix the name of the capability
author
David Mudrák
<david@moodle.com>
Wed, 15 Mar 2017 17:30:46 +0000
(18:30 +0100)
committer
David Mudrák
<david@moodle.com>
Wed, 15 Mar 2017 17:30:46 +0000
(18:30 +0100)
This capability controls who can hide/show the enrolment instance.
enrol/ldap/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/enrol/ldap/lib.php
b/enrol/ldap/lib.php
index
8fa81d6
..
aafc0e7
100644
(file)
--- a/
enrol/ldap/lib.php
+++ b/
enrol/ldap/lib.php
@@
-132,7
+132,7
@@
class enrol_ldap_plugin extends enrol_plugin {
*/
public function can_hide_show_instance($instance) {
$context = context_course::instance($instance->courseid);
- return has_capability('enrol/ldap:
config
', $context);
+ return has_capability('enrol/ldap:
manage
', $context);
}
/**