From 53772ba3058add38f8aef603aa0b433f7a81734a Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 2 Mar 2016 12:41:56 +0100 Subject: [PATCH] Some rights one does not have if either sandboxed or silenced --- classes/Profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Profile.php b/classes/Profile.php index 3ac2effe3c..3dbd883dd8 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -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();