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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user