Need to check the Profile rather than the User.

This commit is contained in:
Zach Copley 2009-11-17 08:48:16 -08:00
parent 6a1afda259
commit 638df94f88
1 changed files with 1 additions and 1 deletions

View File

@ -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 {