Add todo comments

This commit is contained in:
Ramon Wenger 2021-07-07 16:18:14 +02:00
parent b297ae5d51
commit b0478f30cd
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ class UpdateAssignment(relay.ClientIDMutation):
assignment = get_object(Assignment, assignment_data.get('id'))
student = info.context.user
# todo: replace with middleware
if student.read_only:
raise PermissionError('No valid license')
@ -60,6 +61,7 @@ class UpdateSubmissionFeedback(relay.ClientIDMutation):
if not user.has_perm('users.can_manage_school_class_content'):
raise PermissionDenied('Missing permissions')
# todo: replace with middleware
if user.read_only:
raise PermissionError('No valid license')