summaryrefslogtreecommitdiff
path: root/plugins/Ldap/LdapPlugin.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-11-09 17:43:37 -0500
committerCraig Andrews <candrews@integralblue.com>2009-11-09 17:43:37 -0500
commit3be120571446880cb71a57845204b3213e6df67e (patch)
tree1699a4cb46af0e7b8a1edcd009f9554893668e85 /plugins/Ldap/LdapPlugin.php
parent22310d17a4886d5382832caee43da0bcf7914419 (diff)
Add a new event: CanUserChangeField
Diffstat (limited to 'plugins/Ldap/LdapPlugin.php')
-rw-r--r--plugins/Ldap/LdapPlugin.php11
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;
+ }
+ }
}