Skip Navigation

[Resolved] Access control when role has space in the name

This support ticket is created 5 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#1325171

I have a question about using the shortcode for access control for content inside pages:

https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/

I have a role called "Vendor Manager" and another one called "Parent".

when I use the shortcode, should there be a space in the "Vendor Manager" part?

eg.

[toolset_access role="Administrator,Vendor Manager,ActiveParent,Parent,Sitter" operator="deny"]
#1325215

Hi, spaces are allowed here. Usually if your custom role was created with a space in the name, you will see a matching space here in the Access control shortcode. Is it not working as expected?