]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Profile.php
Extend authorization framework to cover login and API use
[quix0rs-gnu-social.git] / classes / Profile.php
index bdac3ba453aa6e09dfd1e247aff7b98b30a1ac71..397b96bbc18c3850a2d7a4ea2eed20f71b1705cc 100644 (file)
@@ -865,6 +865,12 @@ class Profile extends Memcached_DataObject
             case Right::EMAILONFAVE:
                 $result = !$this->isSandboxed();
                 break;
+            case Right::WEBLOGIN:
+                $result = !$this->isSilenced();
+                break;
+            case Right::API:
+                $result = !$this->isSilenced();
+                break;
             case Right::BACKUPACCOUNT:
                 $result = common_config('profile', 'backup');
                 break;