diff --git a/cache/timer.yaml b/cache/timer.yaml index 5b353fb..0c9b7b5 100644 --- a/cache/timer.yaml +++ b/cache/timer.yaml @@ -1 +1 @@ -licenseupdate: 1748376533 +licenseupdate: 1748718958 diff --git a/content/00-getting-started/00-create-your-first-page.yaml b/content/00-getting-started/00-create-your-first-page.yaml index 71c2b4e..d6c54b2 100644 --- a/content/00-getting-started/00-create-your-first-page.yaml +++ b/content/00-getting-started/00-create-your-first-page.yaml @@ -5,7 +5,8 @@ meta: heroimage: '' owner: trendschau author: 'Sebastian Schürmanns' - modified: '2025-05-07' + allowedrole: member + modified: '2025-05-17' created: '2024-04-25' time: 17-24-48 hide: false diff --git a/system/typemill/settings/defaults.yaml b/system/typemill/settings/defaults.yaml index 2bde6a9..fd62fd0 100644 --- a/system/typemill/settings/defaults.yaml +++ b/system/typemill/settings/defaults.yaml @@ -1,4 +1,4 @@ -version: '2.17.2' +version: '2.17.3' title: 'Typemill' author: 'Unknown' copyright: false diff --git a/system/typemill/system.php b/system/typemill/system.php index 472c371..3dc7b32 100644 --- a/system/typemill/system.php +++ b/system/typemill/system.php @@ -263,20 +263,18 @@ $timer['permissions'] = microtime(true); * SEGMENTS WITH SESSION * ****************************/ +$session_segments = ['setup', 'tm/', 'api/']; + # if website is restricted to registered user if( ( isset($settings['access']) && $settings['access'] ) || ( isset($settings['pageaccess']) && $settings['pageaccess'] ) ) { # activate session for all routes $session_segments = [$urlinfo['route']]; } -else -{ - $session_segments = ['setup', 'tm/', 'api/']; - # let plugins add own segments for session, eg. to enable csrf for forms - $client_segments = $dispatcher->dispatch(new OnSessionSegmentsLoaded([]), 'onSessionSegmentsLoaded')->getData(); - $session_segments = array_merge($session_segments, $client_segments); -} +# let plugins add own segments for session, eg. to enable csrf for forms +$client_segments = $dispatcher->dispatch(new OnSessionSegmentsLoaded([]), 'onSessionSegmentsLoaded')->getData(); +$session_segments = array_merge($session_segments, $client_segments); # start session # Session::startSessionForSegments($session_segments, $urlinfo['route']);