Browse Source

fix #71: allow to tweak role manually

SABERES_37_STABLE
Arnaud Trouvé 8 years ago
parent
commit
3bed3f1f47
  1. 4
      lib.php

4
lib.php

@ -41,6 +41,10 @@ class enrol_apply_plugin extends enrol_plugin {
// Users with unenrol cap may unenrol other users manually. // Users with unenrol cap may unenrol other users manually.
return true; return true;
} }
public function roles_protected() {
// Users may tweak the roles later.
return false;
}
/** /**
* Prevent to unenrol an user with a pending application * Prevent to unenrol an user with a pending application
* *

Loading…
Cancel
Save