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:
Mateusz Uzdowski 2011-04-11 10:32:51 +12:00
parent 85a095702b
commit f0e93b1b3c

View File

@ -265,8 +265,7 @@ JS;
} }
} }
// Only bother flushing caches if we've actually changed Permission::flush_permission_cache();
if($subsiteID != self::currentSubsiteID()) Permission::flush_permission_cache();
} }
/** /**