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

View File

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