aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Action/ProfileDelete.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/Action/ProfileDelete.php')
-rw-r--r--inc/Action/ProfileDelete.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/inc/Action/ProfileDelete.php b/inc/Action/ProfileDelete.php
index d8e434011..5c190cd69 100644
--- a/inc/Action/ProfileDelete.php
+++ b/inc/Action/ProfileDelete.php
@@ -13,31 +13,33 @@ use dokuwiki\Extension\AuthPlugin;
*
* @package dokuwiki\Action
*/
-class ProfileDelete extends AbstractUserAction {
-
+class ProfileDelete extends AbstractUserAction
+{
/** @inheritdoc */
- public function minimumPermission() {
+ public function minimumPermission()
+ {
return AUTH_NONE;
}
/** @inheritdoc */
- public function checkPreconditions() {
+ public function checkPreconditions()
+ {
parent::checkPreconditions();
/** @var AuthPlugin $auth */
global $auth;
- if(!$auth->canDo('delUser')) throw new ActionDisabledException();
+ if (!$auth->canDo('delUser')) throw new ActionDisabledException();
}
/** @inheritdoc */
- public function preProcess() {
+ public function preProcess()
+ {
global $lang;
- if(auth_deleteprofile()) {
+ if (auth_deleteprofile()) {
msg($lang['profdeleted'], 1);
throw new ActionAbort('show');
} else {
throw new ActionAbort('profile');
}
}
-
}