From: Zach Copley Date: Tue, 17 Nov 2009 16:48:16 +0000 (-0800) Subject: Need to check the Profile rather than the User. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=638df94f88fb4d401258feb26cc6511167d1d72e;p=quix0rs-gnu-social.git Need to check the Profile rather than the User. --- diff --git a/classes/Notice.php b/classes/Notice.php index 1db431f2a7..ebb5022b99 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 {