Skip to content

Commit 368f762

Browse files
committed
fix student can't get sub detail
1 parent 3c8fa2a commit 368f762

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

submission/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Submission(models.Model):
3838

3939
def check_user_permission(self, user, check_share=True):
4040
if (
41-
self.user_id == user.id
41+
str(self.user_id) == str(user.id)
4242
or user.is_super_admin()
4343
or user.can_mgmt_all_problem()
4444
or self.problem.created_by_id == user.id

0 commit comments

Comments
 (0)