1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-30 19:00:32 +02:00

content restrictions in system settings and meta-tabs

This commit is contained in:
trendschau
2021-01-22 22:16:22 +01:00
parent 54012441b6
commit 5f01147e58
10 changed files with 209 additions and 46 deletions

View File

@@ -181,11 +181,12 @@ $container['assets'] = function($c) use ($uri)
********************************/
# if website is restricted to registered user
if(isset($settings['settings']['access']) && $settings['settings']['access'] == 'registered')
if( ( isset($settings['settings']['access']) && $settings['settings']['access'] ) || ( isset($settings['settings']['pageaccess']) && $settings['settings']['pageaccess'] ) )
{
# activate session for all routes
$session_segments = [$uri->getPath()];
}
foreach($session_segments as $segment)
{
if(substr( $uri->getPath(), 0, strlen($segment) ) === $segment)