From: Mikael Nordfeldth Date: Wed, 2 Mar 2016 11:41:56 +0000 (+0100) Subject: Some rights one does not have if either sandboxed or silenced X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=53772ba3058add38f8aef603aa0b433f7a81734a;p=quix0rs-gnu-social.git Some rights one does not have if either sandboxed or silenced --- 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();