summaryrefslogtreecommitdiff
path: root/classes/Profile.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-03 15:43:49 -0800
committerBrion Vibber <brion@pobox.com>2010-03-03 15:43:49 -0800
commit4a2511139eaafcbe93a2e720e0c6f170ecb00d77 (patch)
tree1b9abf6fcd9db6a4d785871352dd7eb20ae35b82 /classes/Profile.php
parent06db00d303bda500eec578b490c12d2bf389c853 (diff)
Initial user role controls on profile pages, for owner to add/remove administrator and moderator options.
Buttons need to be themed.
Diffstat (limited to 'classes/Profile.php')
-rw-r--r--classes/Profile.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/Profile.php b/classes/Profile.php
index 9c2fa7a0c..0322c9358 100644
--- a/classes/Profile.php
+++ b/classes/Profile.php
@@ -743,6 +743,10 @@ class Profile extends Memcached_DataObject
case Right::CONFIGURESITE:
$result = $this->hasRole(Profile_role::ADMINISTRATOR);
break;
+ case Right::GRANTROLE:
+ case Right::REVOKEROLE:
+ $result = $this->hasRole(Profile_role::OWNER);
+ break;
case Right::NEWNOTICE:
case Right::NEWMESSAGE:
case Right::SUBSCRIBE: