more rights denied to silenced and sandboxed
This commit is contained in:
parent
f1efb845e4
commit
e9321a1806
@ -690,9 +690,13 @@ class Profile extends Memcached_DataObject
|
|||||||
$result = $this->hasRole(Profile_role::ADMINISTRATOR);
|
$result = $this->hasRole(Profile_role::ADMINISTRATOR);
|
||||||
break;
|
break;
|
||||||
case Right::NEWNOTICE:
|
case Right::NEWNOTICE:
|
||||||
|
case Right::NEWMESSAGE:
|
||||||
|
case Right::SUBSCRIBE:
|
||||||
$result = !$this->isSilenced();
|
$result = !$this->isSilenced();
|
||||||
break;
|
break;
|
||||||
case Right::PUBLICNOTICE:
|
case Right::PUBLICNOTICE:
|
||||||
|
case Right::EMAILONREPLY:
|
||||||
|
case Right::EMAILONSUBSCRIBE:
|
||||||
$result = !$this->isSandboxed();
|
$result = !$this->isSandboxed();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -52,5 +52,9 @@ class Right
|
|||||||
const SANDBOXUSER = 'sandboxuser';
|
const SANDBOXUSER = 'sandboxuser';
|
||||||
const NEWNOTICE = 'newnotice';
|
const NEWNOTICE = 'newnotice';
|
||||||
const PUBLICNOTICE = 'publicnotice';
|
const PUBLICNOTICE = 'publicnotice';
|
||||||
|
const NEWMESSAGE = 'newmessage';
|
||||||
|
const SUBSCRIBE = 'subscribe';
|
||||||
|
const EMAILONREPLY = 'emailonreply';
|
||||||
|
const EMAILONSUBSCRIBE = 'emailonsubscribe';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user