Open lukasjuhas opened 6 years ago
I comment here instead of opening a new thread since I believe the issues belong together. We also use a structure like mentioned but I'm not sure if the problem is depending or not.
If WooCommerce is installed the "forgotten password" link cannot work since in WooCommerce hitchhikes the login to the frontend.
I believe this is the same issue I'm having... only in my case, it's stopping me from viewing the settings page of the plugin, making it unusable.
i.e. Sorry, you are not allowed to access this page.
Hi Lukas,
This can be resolved with a current_user_can('administrator')
condition added next to the existing current_user_can('super admin')
check. It will gives the logged in user, who is an administrator, a free-bypass of the maintenance mode page for the entire site.
This works in well with the existing role based tick box settings that allows users with less privileged roles to fully test (& experience) the maintenance mode page in action (and still log in).
Working solution available in forked Milestone. All feedback is welcomed.
From wordpress org: