]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
define rights for account maintenance and default rules
authorEvan Prodromou <evan@status.net>
Mon, 13 Dec 2010 21:28:32 +0000 (16:28 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 13 Dec 2010 21:28:32 +0000 (16:28 -0500)
classes/Profile.php
lib/right.php

index 332d51e2037ea92f542c42cb9d24c8beb6804ce1..b83337cd22a36a0989e025d8594a956fca1d5c45 100644 (file)
@@ -891,6 +891,18 @@ class Profile extends Memcached_DataObject
             case Right::EMAILONFAVE:
                 $result = !$this->isSandboxed();
                 break;
+            case Right::BACKUPACCOUNT:
+                $result = common_config('profile', 'backup');
+                break;
+            case Right::RESTOREACCOUNT:
+                $result = common_config('profile', 'restore');
+                break;
+            case Right::DELETEACCOUNT:
+                $result = common_config('profile', 'delete');
+                break;
+            case Right::MOVEACCOUNT:
+                $result = common_config('profile', 'move');
+                break;
             default:
                 $result = false;
                 break;
index bacbea5f2966dc6afd20d1708f92f57b58225e8a..5bf9c41161adf86972068d7ab8196975b9dac6a8 100644 (file)
@@ -61,5 +61,9 @@ class Right
     const GRANTROLE          = 'grantrole';
     const REVOKEROLE         = 'revokerole';
     const DELETEGROUP        = 'deletegroup';
+    const BACKUPACCOUNT      = 'backupaccount';
+    const RESTOREACCOUNT     = 'restoreaccount';
+    const DELETEACCOUNT      = 'deleteaccount';
+    const MOVEACCOUNT        = 'moveaccount';
 }