Some rights one does not have if either sandboxed or silenced

This commit is contained in:
Mikael Nordfeldth 2016-03-02 12:41:56 +01:00
parent d6598e790c
commit 53772ba305
1 changed files with 1 additions and 1 deletions

View File

@ -1325,7 +1325,7 @@ class Profile extends Managed_DataObject
case Right::EMAILONREPLY:
case Right::EMAILONSUBSCRIBE:
case Right::EMAILONFAVE:
$result = !$this->isSandboxed();
$result = !$this->isSandboxed() && !$this->isSilenced();
break;
case Right::WEBLOGIN:
$result = !$this->isSilenced();