133551e4eSAndreas Gohr<?php 233551e4eSAndreas Gohr 333551e4eSAndreas Gohrnamespace dokuwiki\Action; 433551e4eSAndreas Gohr 533551e4eSAndreas Gohruse dokuwiki\Action\Exception\ActionAbort; 633551e4eSAndreas Gohr 733551e4eSAndreas Gohr/** 833551e4eSAndreas Gohr * Class ProfileDelete 933551e4eSAndreas Gohr * 1033551e4eSAndreas Gohr * Delete a user account 1133551e4eSAndreas Gohr * 1233551e4eSAndreas Gohr * @package dokuwiki\Action 1333551e4eSAndreas Gohr */ 1433551e4eSAndreas Gohrclass ProfileDelete extends AbstractUserAction { 1533551e4eSAndreas Gohr 1633551e4eSAndreas Gohr /** @inheritdoc */ 17*ec701221SAndreas Gohr public function minimumPermission() { 1833551e4eSAndreas Gohr return AUTH_NONE; 1933551e4eSAndreas Gohr } 2033551e4eSAndreas Gohr 2133551e4eSAndreas Gohr /** @inheritdoc */ 2233551e4eSAndreas Gohr public function preProcess() { 2333551e4eSAndreas Gohr global $lang; 2433551e4eSAndreas Gohr if(auth_deleteprofile()) { 2533551e4eSAndreas Gohr msg($lang['profdeleted'], 1); 2633551e4eSAndreas Gohr throw new ActionAbort('show'); 2733551e4eSAndreas Gohr } else { 2833551e4eSAndreas Gohr throw new ActionAbort('profile'); 2933551e4eSAndreas Gohr } 3033551e4eSAndreas Gohr } 3133551e4eSAndreas Gohr 3233551e4eSAndreas Gohr} 33