omniport-shell icon indicating copy to clipboard operation
omniport-shell copied to clipboard

Handle the case when the Maintainer is not a student

Open pradumangoyal opened this issue 5 years ago • 3 comments

Currently, implementation of the get_rights_for_semester in the file /utils.rights.py is on the assumption that a maintainer should be a student. But as there can be maintainers with no other roles, it should handle the case too.

My suggestion would be to pass a callback bool (defaults to False) in the function get_rights_for_semester(user, semester_no, right_if_not_student) which should be returned if the user is a maintainer but not a student.

pradumangoyal avatar Aug 19 '20 07:08 pradumangoyal

assign it to me

GopalGupta8216 avatar Sep 04 '20 07:09 GopalGupta8216

@GopalGupta8216 feel free to take this up

algomaster99 avatar Sep 04 '20 09:09 algomaster99

@GopalGupta8216 any updates?

pradumangoyal avatar Sep 17 '20 11:09 pradumangoyal