3 namespace dokuwiki\Action
;
5 use dokuwiki\Ui\UserProfile
;
6 use dokuwiki\Action\Exception\ActionAbort
;
7 use dokuwiki\Action\Exception\ActionDisabledException
;
8 use dokuwiki\Extension\AuthPlugin
;
14 * Handle the profile form
16 * @package dokuwiki\Action
18 class Profile
extends AbstractUserAction
21 public function minimumPermission()
27 public function checkPreconditions()
29 parent
::checkPreconditions();
31 /** @var AuthPlugin $auth */
33 if (!$auth->canDo('Profile')) throw new ActionDisabledException();
37 public function preProcess()
40 if (updateprofile()) {
41 msg($lang['profchanged'], 1);
42 throw new ActionAbort('show');
47 public function tplContent()
49 (new UserProfile())->show();