]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Need to check the Profile rather than the User.
authorZach Copley <zach@status.net>
Tue, 17 Nov 2009 16:48:16 +0000 (08:48 -0800)
committerZach Copley <zach@status.net>
Tue, 17 Nov 2009 16:48:16 +0000 (08:48 -0800)
classes/Notice.php

index 1db431f2a76d7fb59371571234b8c49d7ac3ffbd..ebb5022b9910f6e1c89d528a620d461ae3bdc3cc 100644 (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 {