frontend-app-learning
frontend-app-learning copied to clipboard
feat: hide studio button for limited staff [BB-9082]
Description
Partially addresses https://github.com/openedx/platform-roadmap/issues/361 issue, by implementing the second suggestion from here:
Limited Staff should not see the button to "view this course in Studio" from the LMS. This will reduce chances for Limited Staff to land on Studio pages.
This fix relies on https://github.com/openedx/edx-platform/pull/35313.
Testing
- Create two users,
[email protected]
and[email protected]
. - In the instructor's dashboard, assign
[email protected]
user to the staff course access role, and[email protected]
to the limited staff course access role. - Verify that the limited staff user doesn't see "View in Studio" button. Cycle through different roles in "View this course as:" dropdown and verify that none can see this button.
- The same as №3, but staff user should see this button always.