Skip to content

Handle the case when the Maintainer is not a student #10

@pradumangoyal

Description

@pradumangoyal

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions