You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like to hide the publishing status button in the toolbar so it's only visible for admin users and not for the rest of the users. But updating the permittedRoles does not work for the widget craftercms.components.PublishingStatusButton
Notice that the studio is blank and there is an error in the console:
TypeError: e.permittedRoles.includes is not a function
at renderWidgets.tsx:42:68
at Array.some (<anonymous>)
at renderWidgets.tsx:42:31
at Array.filter (<anonymous>)
at r (renderWidgets.tsx:39:10)
at P (ToolBar.tsx:83:12)
at qa (react-dom.production.min.js:167:137)
at Wu (react-dom.production.min.js:197:258)
at qc (react-dom.production.min.js:292:88)
at As (react-dom.production.min.js:280:389)
Relevant log output
No response
Screenshots and/or videos
The text was updated successfully, but these errors were encountered:
sumerjabri
changed the title
permittedRoles is not working for widget PublishingStatusButton
[studio-ui] permittedRoles is not working for widget PublishingStatusButton
Jul 18, 2023
Duplicates
Latest version
Describe the issue
We would like to hide the publishing status button in the toolbar so it's only visible for admin users and not for the rest of the users. But updating the
permittedRoles
does not work for the widgetcraftercms.components.PublishingStatusButton
Steps to reproduce
Steps:
Relevant log output
No response
Screenshots and/or videos
The text was updated successfully, but these errors were encountered: