summaryrefslogtreecommitdiff
path: root/classes/Profile.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-11-16 19:22:22 +0100
committerEvan Prodromou <evan@status.net>2009-11-16 19:22:22 +0100
commitf1efb845e4955f398be3a7e36499474dc67bdade (patch)
treede565738a6743fb4bc016d03dc843365f36c6860 /classes/Profile.php
parentd2145a5b7f3a95dcfa90edb4bcd5e5b3bf66c116 (diff)
don't allow sandboxed users to post public notices
Diffstat (limited to 'classes/Profile.php')
-rw-r--r--classes/Profile.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/Profile.php b/classes/Profile.php
index e3b35533a..291e3f064 100644
--- a/classes/Profile.php
+++ b/classes/Profile.php
@@ -692,6 +692,9 @@ class Profile extends Memcached_DataObject
case Right::NEWNOTICE:
$result = !$this->isSilenced();
break;
+ case Right::PUBLICNOTICE:
+ $result = !$this->isSandboxed();
+ break;
default:
$result = false;
break;