• Resolved hessercan

    (@hessercan)


    So I run a WordPress Multisite and when I login to the site with this plugin enabled I get completely locked out of the backend. I just keep getting redirected to the client zone. A regular admin can login just fine, just not me… The super admin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    Thread Starter hessercan

    (@hessercan)

    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.

    Plugin Author Jack Mawhinney

    (@jackjpdiscos)

    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 ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Super Admin Problems’ is closed to new replies.