Anonymous User 15356385
(@anonymized-15356385)
@hessercan the MDJM plugin has been transferred to a new developer, but when I managed it, it was not Multisite compatible. I do not believe any updates have taken place since the change in ownership that would make it compatible
Maybe you could help point me in the right direction so I can fix it. When an administrator logs in everything is fine, but when the super admin logs in, any attempt to get to wp-admin is redirected to the client portal. I’ve spent hours going through files in the plugin. I just don’t know where the validation of user roles is taking place.
Hi Hessercan,
Have you set the permissions to allow MDJM Admin? You can set this in the Users menu down the left hand side of the wp-admin of your site.
You will need to login as a different admin to do this as you can’t change permissions for your own profile.
Users –> All Users –> Search for the user you want –> hover over the username and click “edit” –> scroll down the page and under the heading “MDJM Management” make sure the user is MDJM Admin? is ticked.
Anonymous User 15356385
(@anonymized-15356385)
@hessercan you could try adjusting this line from
if( current_user_can( 'client' ) || current_user_can( 'inactive_client' ) ) {
to
if( ! is_super_admin() && ( current_user_can( 'client' ) || current_user_can( 'inactive_client' ) ) ) {
I have not tested. If it doesn’t work, I’ll leave it to the plugin devs to chime in 🙂