fix: moderators should be able to access unpublished courses
This commit is contained in:
Submodule frappe-ui updated: 8b85a70d21...310089f4a4
@@ -144,7 +144,12 @@ watch(
|
||||
)
|
||||
|
||||
watch(course, () => {
|
||||
if (!isInstructor() && !course.data?.published && !course.data?.upcoming) {
|
||||
if (
|
||||
!isInstructor() &&
|
||||
!user.data?.is_moderator &&
|
||||
!course.data?.published &&
|
||||
!course.data?.upcoming
|
||||
) {
|
||||
router.push({
|
||||
name: 'Courses',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user