summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/Notice.php5
-rw-r--r--classes/Profile.php3
2 files changed, 5 insertions, 3 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index fde40240f..1db431f2a 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -203,12 +203,11 @@ class Notice extends Memcached_DataObject
$notice = new Notice();
$notice->profile_id = $profile_id;
- $blacklist = common_config('public', 'blacklist');
$autosource = common_config('public', 'autosource');
- # Blacklisted are non-false, but not 1, either
+ # Sandboxed are non-false, but not 1, either
- if (($blacklist && in_array($profile_id, $blacklist)) ||
+ if (!$user->hasRight(Right::PUBLICNOTICE) ||
($source && $autosource && in_array($source, $autosource))) {
$notice->is_local = Notice::LOCAL_NONPUBLIC;
} else {
diff --git a/classes/Profile.php b/classes/Profile.php
index e3b35533a..291e3f064 100644
--- a/classes/Profile.php
+++ b/classes/Profile.php
@@ -692,6 +692,9 @@ class Profile extends Memcached_DataObject
case Right::NEWNOTICE:
$result = !$this->isSilenced();
break;
+ case Right::PUBLICNOTICE:
+ $result = !$this->isSandboxed();
+ break;
default:
$result = false;
break;