define rights for account maintenance and default rules
This commit is contained in:
parent
7c7b91e61a
commit
75aaa98462
@ -891,6 +891,18 @@ class Profile extends Memcached_DataObject
|
|||||||
case Right::EMAILONFAVE:
|
case Right::EMAILONFAVE:
|
||||||
$result = !$this->isSandboxed();
|
$result = !$this->isSandboxed();
|
||||||
break;
|
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:
|
default:
|
||||||
$result = false;
|
$result = false;
|
||||||
break;
|
break;
|
||||||
|
@ -61,5 +61,9 @@ class Right
|
|||||||
const GRANTROLE = 'grantrole';
|
const GRANTROLE = 'grantrole';
|
||||||
const REVOKEROLE = 'revokerole';
|
const REVOKEROLE = 'revokerole';
|
||||||
const DELETEGROUP = 'deletegroup';
|
const DELETEGROUP = 'deletegroup';
|
||||||
|
const BACKUPACCOUNT = 'backupaccount';
|
||||||
|
const RESTOREACCOUNT = 'restoreaccount';
|
||||||
|
const DELETEACCOUNT = 'deleteaccount';
|
||||||
|
const MOVEACCOUNT = 'moveaccount';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user