Description
Currently, a user with edit permissions can see the publish button in Studio. We have added a publish permission, so if a user has a role like contributor (which can edit but not publish), they will see the button and an error message when performing the action.
Expected behavior: hide the publish button unless you have publish permission, because it could be confusing and a bad experience to see an option you can't use.
How to reproduce the behavior
- Login in stage using the contributor user https://apps.singapore.edunext.cloud/authoring/library/lib:OpenedX:CSPROB (it has contributor role over the lib:OpenedX:CSPROB library)
- View the detail of the library here: https://apps.singapore.edunext.cloud/authoring/library/lib:OpenedX:CSPROB
- See the publish button, try it and it will fail.
Expected behavior
Hide the publish button if the user doesn't have publish permissions.
Description
Currently, a user with edit permissions can see the publish button in Studio. We have added a publish permission, so if a user has a role like contributor (which can edit but not publish), they will see the button and an error message when performing the action.
Expected behavior: hide the publish button unless you have publish permission, because it could be confusing and a bad experience to see an option you can't use.
How to reproduce the behavior
Expected behavior
Hide the publish button if the user doesn't have publish permissions.