projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffc2c72
)
let author see own spam
author
Evan Prodromou
<evan@status.net>
Tue, 24 Apr 2012 01:25:53 +0000
(21:25 -0400)
committer
Evan Prodromou
<evan@status.net>
Tue, 24 Apr 2012 01:25:53 +0000
(21:25 -0400)
classes/Notice.php
patch
|
blob
|
history
diff --git
a/classes/Notice.php
b/classes/Notice.php
index 97193dbb3439a54af8613029c8b6f6d30f07a53f..5b1bdcbdad98ec155c70e332015376efc52ac076 100644
(file)
--- a/
classes/Notice.php
+++ b/
classes/Notice.php
@@
-2474,7
+2474,7
@@
class Notice extends Managed_DataObject
$author = $this->getProfile();
if ($author->hasRole(Profile_role::SILENCED)) {
- if (empty($profile) ||
!$profile->hasRight(Right::REVIEWSPAM
)) {
+ if (empty($profile) ||
(($profile->id !== $author->id) && (!$profile->hasRight(Right::REVIEWSPAM))
)) {
return true;
}
}