Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
0594336d
Commit
0594336d
authored
Aug 11, 2014
by
Daniel Neis Araujo
Committed by
Daniel Neis Araujo
Aug 21, 2014
Browse files
MDL-46509 enrol: fix usage of incorrect capability check
parent
85b030cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
enrol/ldap/lib.php
View file @
0594336d
...
...
@@ -108,7 +108,7 @@ class enrol_ldap_plugin extends enrol_plugin {
*/
public
function
can_delete_instance
(
$instance
)
{
$context
=
context_course
::
instance
(
$instance
->
courseid
);
if
(
!
has_capability
(
'enrol/ldap:
config
'
,
$context
))
{
if
(
!
has_capability
(
'enrol/ldap:
manage
'
,
$context
))
{
return
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment