JoryHogeveen / view-admin-as

View the WordPress admin as a different role, switch between users, temporarily change your capabilities, set default screen settings for roles, manage your roles and capabilities.
https://wordpress.org/plugins/view-admin-as/
GNU General Public License v2.0
45 stars 4 forks source link

Multi-Site Lost Functionality #115

Closed HarmonyEd closed 3 years ago

HarmonyEd commented 3 years ago

We switched our site to multisite. We did not make any other changes. But now we have staff reporting they can't see the View As option. I have checked their capabilities for all the roles these users have and they all have the same capabilities as they had before when it was working. Is the site not multisite capable?

Describe the bug

A clear and concise description of what the bug is.

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Specifications

Additional context

Add any other context about the problem here.

JoryHogeveen commented 3 years ago

Hello, In a multisite environment you need to be a super admin to view the plugin by default. If you need to enable this plugin for regular admins you'll have to grant the view_admin_as capability. Cheers, Jory

HarmonyEd commented 3 years ago

All of these people have the view_admin_as role for any and on role they have.

JoryHogeveen commented 3 years ago

It's a capability that depends on another capability. Have you fully read the documentation? https://github.com/JoryHogeveen/view-admin-as/wiki/Custom-capabilities

HarmonyEd commented 3 years ago

Yes I have. I had fully read twice before submitting. I am not one of those people that don't do their due diligence first. I hate it when people do that to me. However, I did miss (not sure how) the line that says add manage_network_users.

Thanks for your help.

HarmonyEd commented 3 years ago

By the way, all of these users have Administrator access and our role permissions say that we want it to trump all others.

JoryHogeveen commented 3 years ago

However, I did miss (not sure how) the line that says add manage_network_users.

No problemo!

By the way, all of these users have Administrator access and our role permissions say that we want it to trump all others.

Not sure what you mean with this. I do know that once you run a multisite an administrator gets somewhat "downgraded".

Cheers, Jory