mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUGFIX: flush cache always after changing the subsite - otherwise a user who has access only to one of the subsites will not be able to get to the CMS at all.
This commit is contained in:
parent
85a095702b
commit
f0e93b1b3c
@ -265,8 +265,7 @@ JS;
|
||||
}
|
||||
}
|
||||
|
||||
// Only bother flushing caches if we've actually changed
|
||||
if($subsiteID != self::currentSubsiteID()) Permission::flush_permission_cache();
|
||||
Permission::flush_permission_cache();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user