summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-12-13 16:28:32 -0500
committerEvan Prodromou <evan@status.net>2010-12-13 16:28:32 -0500
commit75aaa9846263cb25d0047200e9eec678ca725ffe (patch)
tree08b407936225b8cece4a61b6e3283454fceb4757
parent7c7b91e61ad273023d774617f23fa1429f535b22 (diff)
define rights for account maintenance and default rules
-rw-r--r--classes/Profile.php12
-rw-r--r--lib/right.php4
2 files changed, 16 insertions, 0 deletions
diff --git a/classes/Profile.php b/classes/Profile.php
index 332d51e20..b83337cd2 100644
--- a/classes/Profile.php
+++ b/classes/Profile.php
@@ -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;
diff --git a/lib/right.php b/lib/right.php
index bacbea5f2..5bf9c4116 100644
--- a/lib/right.php
+++ b/lib/right.php
@@ -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';
}