Skip to content

Custom capabilities

Jory Hogeveen edited this page Oct 16, 2017 · 11 revisions

view_admin_as

Since: 1.5.1

Capability for non-admin users to enable limited access to this plugin (they won’t be able to view or edit equal or admin users and roles).

Keep in mind that this still could cause security issues if you didn't properly setup and check the capabilities for the roles that you grant this capability.
Example: This role can only edit it's own posts and the user switched to a user that has a different role that can. The user can now edit the switched-to user's posts! This is possible if the role of the switched-to user doesn't have the view_admin_as capability.
Use only when you know what you are doing!

This capability requires the edit_users capability (+ manage_network_users for multisite installations)

Use with care!

view_admin_as_role_defaults

Since: 1.5.2

Grant access to the role defaults module for non-admin users.
This capability needs to be accompanied by view_admin_as