fix a PHP notice error when there is no logged-in user (so there are no groups)
have has_access() keep calculated effective rights in memory to avoid repeated cache hits