Add todo comments
This commit is contained in:
parent
b297ae5d51
commit
b0478f30cd
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue