summaryrefslogtreecommitdiff
path: root/inc/confutils.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2013-07-31 18:14:26 +0200
committerChristopher Smith <chris@jalakai.co.uk>2013-07-31 18:14:26 +0200
commit2a7abf2d7fee6a2d6418e5ad4b79e37e6049bd92 (patch)
treeb4d8b38bd7113d0e02b7eb7a53da0d3b5354712b /inc/confutils.php
parent07ff0babae240ba072a3bc8b83a989c4305c24cd (diff)
downloadrpg-2a7abf2d7fee6a2d6418e5ad4b79e37e6049bd92.tar.gz
rpg-2a7abf2d7fee6a2d6418e5ad4b79e37e6049bd92.tar.bz2
FS#2751 - self deletion of user account
Diffstat (limited to 'inc/confutils.php')
-rw-r--r--inc/confutils.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/confutils.php b/inc/confutils.php
index 404cc6050..02be0089c 100644
--- a/inc/confutils.php
+++ b/inc/confutils.php
@@ -261,6 +261,9 @@ function actionOK($action){
if (is_null($auth) || !$auth->canDo('Profile')) {
$disabled[] = 'profile';
}
+ if (is_null($auth) || !$auth->canDo('delUser')) {
+ $disabled[] = 'profile_delete';
+ }
if (is_null($auth)) {
$disabled[] = 'login';
}