summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-11-16 19:46:08 +0100
committerEvan Prodromou <evan@status.net>2009-11-16 19:46:08 +0100
commite9321a18063911f28bb55e355298ce65b36b5b71 (patch)
tree229871ed8685653c98bff1c4e7013e7de5aad508 /classes
parentf1efb845e4955f398be3a7e36499474dc67bdade (diff)
more rights denied to silenced and sandboxed
Diffstat (limited to 'classes')
-rw-r--r--classes/Profile.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/Profile.php b/classes/Profile.php
index 291e3f064..8754c506c 100644
--- a/classes/Profile.php
+++ b/classes/Profile.php
@@ -690,9 +690,13 @@ class Profile extends Memcached_DataObject
$result = $this->hasRole(Profile_role::ADMINISTRATOR);
break;
case Right::NEWNOTICE:
+ case Right::NEWMESSAGE:
+ case Right::SUBSCRIBE:
$result = !$this->isSilenced();
break;
case Right::PUBLICNOTICE:
+ case Right::EMAILONREPLY:
+ case Right::EMAILONSUBSCRIBE:
$result = !$this->isSandboxed();
break;
default: