From 3bed3f1f470807992a94906f2283e0118ba2058e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Trouv=C3=A9?= Date: Fri, 4 Aug 2017 13:27:13 +0200 Subject: [PATCH] fix #71: allow to tweak role manually --- lib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib.php b/lib.php index 1359dac..28f0aca 100644 --- a/lib.php +++ b/lib.php @@ -41,6 +41,10 @@ class enrol_apply_plugin extends enrol_plugin { // Users with unenrol cap may unenrol other users manually. return true; } + public function roles_protected() { + // Users may tweak the roles later. + return false; + } /** * Prevent to unenrol an user with a pending application *