Skip to content

Bug: Hide publish library button in Studio. #139

@MaferMazu

Description

@MaferMazu

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

  1. 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)
  2. View the detail of the library here: https://apps.singapore.edunext.cloud/authoring/library/lib:OpenedX:CSPROB
  3. See the publish button, try it and it will fail.
Image

Expected behavior

Hide the publish button if the user doesn't have publish permissions.

Metadata

Metadata

Assignees

Labels

MVPrelease testingAffects the upcoming release (attention needed)ulmoReleased in Ulmo

Type

Projects

Status

Ready for review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions