From 667f1baeed196cd90731cbe53cbb6e386b5d1f1f Mon Sep 17 00:00:00 2001 From: Rasmus Fuhse Date: Thu, 10 Jul 2025 08:32:09 +0000 Subject: =?UTF-8?q?Resolve=20"Wiki:=20automatisches=20Speichern=20funktion?= =?UTF-8?q?iert=20nicht,=20wenn=20"Benachrichtigungen=20=C3=BCber=20Javasc?= =?UTF-8?q?ript"=20deaktivert=20ist"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #4847, #4848, and #935 Merge request studip/studip!4337 --- app/views/settings/general.php | 2 +- lib/include/html_head.inc.php | 3 +-- templates/layouts/base.php | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/views/settings/general.php b/app/views/settings/general.php index 27cf5c9..0e7b7d1 100644 --- a/app/views/settings/general.php +++ b/app/views/settings/general.php @@ -77,7 +77,7 @@ $start_pages = [ user_id)) echo 'checked'; ?>> - + diff --git a/lib/include/html_head.inc.php b/lib/include/html_head.inc.php index 7e7bdea..c028ab2 100644 --- a/lib/include/html_head.inc.php +++ b/lib/include/html_head.inc.php @@ -48,8 +48,7 @@ $lang_attr = str_replace('_', '-', $_SESSION['_language']); }, jsupdate_enable: have_perm('autor') && - PersonalNotifications::isActivated()) ?>, + $GLOBALS['perm']->have_perm('autor')) ?>, wysiwyg_enabled: WYSIWYG) ?> } diff --git a/templates/layouts/base.php b/templates/layouts/base.php index 782a12b..67bda14 100644 --- a/templates/layouts/base.php +++ b/templates/layouts/base.php @@ -44,8 +44,7 @@ $lang_attr = str_replace('_', '-', $_SESSION['_language']); USER_ID: id) ?>, jsupdate_enable: have_perm('autor') && - PersonalNotifications::isActivated()) ?>, + $GLOBALS['perm']->have_perm('autor')) ?>, wysiwyg_enabled: WYSIWYG) ?>, server_timestamp: , config: