From 638df94f88fb4d401258feb26cc6511167d1d72e Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Tue, 17 Nov 2009 08:48:16 -0800 Subject: Need to check the Profile rather than the User. --- classes/Notice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/Notice.php') 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 { -- cgit v1.2.3-54-g00ecf