summaryrefslogtreecommitdiff
path: root/classes/Notice.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-11-17 08:48:16 -0800
committerZach Copley <zach@status.net>2009-11-17 08:48:16 -0800
commit638df94f88fb4d401258feb26cc6511167d1d72e (patch)
treea04710946d05c6ffdde32d8bc643ba3cec6053d0 /classes/Notice.php
parent6a1afda259c5223449f679a64f932e36df5ebe39 (diff)
Need to check the Profile rather than the User.
Diffstat (limited to 'classes/Notice.php')
-rw-r--r--classes/Notice.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 1db431f2a..ebb5022b9 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -207,7 +207,7 @@ class Notice extends Memcached_DataObject
# Sandboxed are non-false, but not 1, either
- if (!$user->hasRight(Right::PUBLICNOTICE) ||
+ if (!$profile->hasRight(Right::PUBLICNOTICE) ||
($source && $autosource && in_array($source, $autosource))) {
$notice->is_local = Notice::LOCAL_NONPUBLIC;
} else {