diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2021-07-27 16:45:06 +0200 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2021-07-27 16:45:24 +0200 |
| commit | b057fbb1546cf557d60e5544ef6607e5fd0e5c38 (patch) | |
| tree | de9db1200dec85f3b74d0de5200ac5de4640c48d /app/controllers/settings | |
| parent | 165caf7c5314edf10c72c1ed44f2db9298d7453e (diff) | |
imported patch for Trac TIC 11427
Diffstat (limited to 'app/controllers/settings')
| -rw-r--r-- | app/controllers/settings/general.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/settings/general.php b/app/controllers/settings/general.php index e1c783f..24c6e5d 100644 --- a/app/controllers/settings/general.php +++ b/app/controllers/settings/general.php @@ -31,6 +31,12 @@ class Settings_GeneralController extends Settings_SettingsController PageLayout::setTitle(_('Allgemeine Einstellungen anpassen')); Navigation::activateItem('/profile/settings/general'); SkipLinks::addIndex(_('Allgemeine Einstellungen anpassen'), 'layout_content', 100); + $this->show_room_management_autor_config = Config::get()->RESOURCES_ENABLE + && ( + ResourceManager::userHasGlobalPermission($this->user, 'autor') + || + RoomManager::userHasRooms($this->user, 'autor') + ); } /** @@ -63,6 +69,9 @@ class Settings_GeneralController extends Settings_SettingsController $this->config->store('SKIPLINKS_ENABLE', Request::int('skiplinks_enable')); $this->config->store('TOUR_AUTOSTART_DISABLE', Request::int('tour_autostart_disable')); $this->config->store('WIKI_COMMENTS_ENABLE', Request::int('wiki_comments_enable')); + if ($this->show_room_management_autor_config) { + $this->config->store('RESOURCES_CONFIRM_PLAN_DRAG_AND_DROP', Request::int('resources_confirm_plan_drag_and_drop')); + } if (Config::get()->WYSIWYG) { $this->config->store('WYSIWYG_DISABLED', !Request::int('wysiwyg_enabled')); |
