diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-11-09 17:43:37 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-11-09 17:43:37 -0500 |
commit | 3be120571446880cb71a57845204b3213e6df67e (patch) | |
tree | 1699a4cb46af0e7b8a1edcd009f9554893668e85 /plugins | |
parent | 22310d17a4886d5382832caee43da0bcf7914419 (diff) |
Add a new event: CanUserChangeField
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Ldap/LdapPlugin.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/Ldap/LdapPlugin.php b/plugins/Ldap/LdapPlugin.php index 755562f54..3795ffd7f 100644 --- a/plugins/Ldap/LdapPlugin.php +++ b/plugins/Ldap/LdapPlugin.php @@ -102,4 +102,15 @@ class LdapPlugin extends Plugin //return false, indicating that the event has been handled return false; } + + function onCanUserChangeField($nickname, $field) + { + switch($field) + { + case 'password': + case 'nickname': + case 'email': + return false; + } + } } |