-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide publish button for user without tagmanager_use_custom_templates capability #785
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I confirmed that the ability to publish new versions was hidden and displayed based on the user permissions as expected 👍
@araichyk If this PR looks alright to you, I can go ahead and merge it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@araichyk Good point, will remove the link too 👍 |
Aside from the broken UI test cases, the changes look good to me 👍 |
…ger into PG-3450-hide-publish
@snake14 UI tests fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Confirmed that the publish link is no longer part of the success message after creating/updating items.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Publish and Versions links are now hidden for my user with the Write access level, but they're still there for Admin or higher access levels. Looks good 👍. Thanks for making those changes!
Description:
Added code to hide publish button for user without tagmanager_use_custom_templates capability
Fixes: #PG-3450, #784
Review