• We’d like to create a duplicate of the admin role that we’ll give our clients. The only difference will be the role name and that they can’t use URE – they should have all other admin permissions. We’re doing this so that we can lock off access to a custom theme branding plugin. We know how to set this up but the question is what happens when new plugins are added that might add custom capabilities. Would we have to manually enable the capabilities on the newly created role then? If this doesn’t happen automatically it would mean that the client might install plugins but then couldn’t use them because we haven’t given them the permissions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    You are right. New role will not get newly added capabilities. It stays the same until you change it. URE adds all existing capabilities automatically only to WordPress built-in ‘administrator’ role.

    Thread Starter Rosso Digital

    (@roberthemsing)

    Gotcha, that makes sense! We often need to create new roles that are exactly the same as another (for instance a website subscriber but then have a free trial member with the exact same access) so we can display conditionally or give discounts conditionally using other plugins. Is there technically a way to link two roles to each other? If there is we’d love to add it as a feature request. If there isn’t such a way technically then we of course can’t add the feature request ??

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Clarify, what do you mean under “link two roles to each other”? What should happen after you make such link, for example?

    Thread Starter Rosso Digital

    (@roberthemsing)

    Let’s say we have the usual administrator role which automatically gets all new permissions that are required, and we’d want to create one that’s called ‘Client Administrator’. When they’re linked, the Client Administrator automatically gets the new permissions too.

    Or in a different scenario, we have a role called trial member and past trial member. They essentially are the same, just different names. If we apply a new permission to a trial member, we automatically want this new permission to be applied to past trial members too.

    The idea behind this is that our theme can show content conditionally depending on what the user role is called and we for instance want to show different content to trial members and past trial members yet they have the same permissions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Auto-Apply New Capabilities?’ is closed to new replies.