Critical bug (multisite superadmin)
-
Hi, there is a critical bug in your plugin which I just found.
in public function finalize_default_vary() it does a get_role().
If the user is a superadmin, it will cache the page for that user’s superadmin data, but it will save it as guest data – this is because the role returns empty for superadmins.
I think in public static function get_role() you need to add something like
if (! $role) { if (is_super_admin()) { $role = "super_admin"; } }
You also have a whole host of other issues like the _ls_cache_vary not being cleared if the user is only logged in for the session and just a host of issues that you guys should notice just using the plugin.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Critical bug (multisite superadmin)’ is closed to new replies.