File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
components/ILIAS/Skill/classes Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 2222use ILIAS \UI \Renderer ;
2323use ILIAS \Skill \Access \SkillManagementAccess ;
2424use ILIAS \Skill \Service \SkillInternalManagerService ;
25+ use ILIAS \UICore \GlobalTemplate ;
2526
2627/**
2728 * Skill management main GUI class
@@ -197,6 +198,12 @@ public function editSettings(): void
197198 if ($ this ->request ->getMethod () == "POST "
198199 && $ this ->request ->getQueryParams ()["skill_settings " ] == "skill_settings_config " ) {
199200 if (!$ this ->management_access_manager ->hasEditManagementSettingsPermission ()) {
201+ $ this ->tpl ->setOnScreenMessage (
202+ GlobalTemplate::MESSAGE_TYPE_FAILURE ,
203+ $ this ->lng ->txt ("no_permission " ),
204+ true
205+ );
206+ $ this ->tpl ->setContent ($ this ->ui_ren ->render ([$ form ]));
200207 return ;
201208 }
202209
You can’t perform that action at this time.
0 commit comments