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
{{ message }}
Repository navigation
Task - implement schedule and details granular permissions #318
Already in src/authz/constants.ts as COURSE_PERMISSIONS.EDIT_SCHEDULE / COURSE_PERMISSIONS.EDIT_DETAILS and in src/authz/permissionHelpers.ts as getScheduleAndDetailsPermissions(courseId).
Already fetched in schedule-and-details/index.jsx as canEditSchedule and canEditDetails; already forwarded to every subsection via isEditable. No new constants or helpers needed.
Role matrix:
Course Auditor (edit schedule ❌, edit details ❌)
Course Editor (edit schedule ❌, edit details ✅).
All inputs are already blocked via the existing isEditable props. The only missing element is the view-only banner shown when the user cannot edit anything on the page.
viewOnlyAlert: {id: 'course-authoring.schedule.alert.view-only',defaultMessage: 'You have view-only access to this page. Contact your organization admin to request editing permissions.',description: 'Alert shown to users who can view but cannot edit schedule or details',},
schedule-and-details/index.jsx — add Alert to paragon imports, add Lock icon, show view-only banner between the page header and the settings section:
scheduleReadOnlyAlert: {id: 'course-authoring.schedule.schedule-section.read-only-alert',defaultMessage: 'You don\'t have permission to edit the "Course Schedule". Contact your organization admin to request access.',description: 'Alert shown inside the Course Schedule section when the user cannot edit schedule fields',},
schedule-and-details/schedule-section/index.jsx — import Alert + LockIcon, accept showReadOnlyAlert prop, render alert between SectionSubHeader and the date list:
schedule-and-details/index.jsx — pass prop; condition is !canEditSchedule && canEditDetails (Course Editor only — Course Auditor already sees the page-level banner):
Activity
bra-i-am commentedon Jun 4, 2026
Refinement
https://www.figma.com/design/onU2END2OXaF7RRLWEHsZI/AuthZ---v2?node-id=9144-5762&t=OrmroEXprX0NyD7D-4
Permissions used:
courses.edit_schedulecourses.edit_detailsAlready in
src/authz/constants.tsasCOURSE_PERMISSIONS.EDIT_SCHEDULE/COURSE_PERMISSIONS.EDIT_DETAILSand insrc/authz/permissionHelpers.tsasgetScheduleAndDetailsPermissions(courseId).Already fetched in
schedule-and-details/index.jsxascanEditScheduleandcanEditDetails; already forwarded to every subsection viaisEditable. No new constants or helpers needed.Role matrix:
All inputs are already blocked via the existing
isEditableprops. The only missing element is the view-only banner shown when the user cannot edit anything on the page.UI location 1 — Schedule & Details page: view-only banner for Course Auditor
Files:
schedule-and-details/messages.ts→schedule-and-details/index.jsxschedule-and-details/messages.ts— add view-only alert message:schedule-and-details/index.jsx— addAlertto paragon imports, addLockicon, show view-only banner between the page header and the settings section:UI location 2 — Schedule & Details page: read-only alert inside Course Schedule section for Course Editor
Files:
schedule-and-details/schedule-section/messages.ts→schedule-and-details/schedule-section/index.jsx→schedule-and-details/index.jsxschedule-and-details/schedule-section/messages.ts— add read-only alert message:schedule-and-details/schedule-section/index.jsx— importAlert+LockIcon, acceptshowReadOnlyAlertprop, render alert betweenSectionSubHeaderand the date list:schedule-and-details/index.jsx— pass prop; condition is!canEditSchedule && canEditDetails(Course Editor only — Course Auditor already sees the page-level banner):This implementation was tested at https://github.com/eduNEXT/frontend-app-authoring/tree/bc/improve-schedule-and-details-permissions
Course Auditor
Course Editor
dcoa commentedon Aug 10, 2026
Most of the implementation has been done previously. I am going to open a same PR for those that have the View Only Alert including this one.