Subversion Repositories oidplus

Rev

Rev 1143 | Rev 1206 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1143 Rev 1201
Line 35... Line 35...
35
         * @throws OIDplusException
35
         * @throws OIDplusException
36
         */
36
         */
37
        public function action(string $actionID, array $params): array {
37
        public function action(string $actionID, array $params): array {
38
                if ($actionID == 'blacklistJWT') {
38
                if ($actionID == 'blacklistJWT') {
39
                        if (!OIDplus::authUtils()->isAdminLoggedIn()) {
39
                        if (!OIDplus::authUtils()->isAdminLoggedIn()) {
40
                                throw new OIDplusException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')));
40
                                throw new OIDplusHtmlException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')));
41
                        }
41
                        }
42
 
42
 
43
                        if (!OIDplus::baseConfig()->getValue('JWT_ALLOW_AJAX_ADMIN', true)) {
43
                        if (!OIDplus::baseConfig()->getValue('JWT_ALLOW_AJAX_ADMIN', true)) {
44
                                throw new OIDplusException(_L('The administrator has disabled this feature. (Base configuration setting %1).','JWT_ALLOW_AJAX_ADMIN'));
44
                                throw new OIDplusException(_L('The administrator has disabled this feature. (Base configuration setting %1).','JWT_ALLOW_AJAX_ADMIN'));
45
                        }
45
                        }