]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
more rights denied to silenced and sandboxed
authorEvan Prodromou <evan@status.net>
Mon, 16 Nov 2009 18:46:08 +0000 (19:46 +0100)
committerEvan Prodromou <evan@status.net>
Mon, 16 Nov 2009 18:46:08 +0000 (19:46 +0100)
classes/Profile.php
lib/right.php

index 291e3f0645fcdd095f1723f5cd1deb66b51b36d8..8754c506ced67993b83ea0a4c68b22797fb0ac98 100644 (file)
@@ -690,9 +690,13 @@ class Profile extends Memcached_DataObject
                 $result = $this->hasRole(Profile_role::ADMINISTRATOR);
                 break;
             case Right::NEWNOTICE:
+            case Right::NEWMESSAGE:
+            case Right::SUBSCRIBE:
                 $result = !$this->isSilenced();
                 break;
             case Right::PUBLICNOTICE:
+            case Right::EMAILONREPLY:
+            case Right::EMAILONSUBSCRIBE:
                 $result = !$this->isSandboxed();
                 break;
             default:
index 1a3a7d49a79515cf15ed60de56d1e5c6d0df52c3..90ca75fd5be28f5ba01e0ea11c8a9ef1b67842dd 100644 (file)
@@ -52,5 +52,9 @@ class Right
     const SANDBOXUSER        = 'sandboxuser';
     const NEWNOTICE          = 'newnotice';
     const PUBLICNOTICE       = 'publicnotice';
+    const NEWMESSAGE         = 'newmessage';
+    const SUBSCRIBE          = 'subscribe';
+    const EMAILONREPLY       = 'emailonreply';
+    const EMAILONSUBSCRIBE   = 'emailonsubscribe';
 }