improve case management

This commit is contained in:
Ross
2025-04-28 15:45:02 +01:00
parent a13be87077
commit 5e578ca2b0
7 changed files with 83 additions and 13 deletions
+9
View File
@@ -533,6 +533,15 @@ class Case(models.Model, AuthorMixin, QuestionMixin):
return size
def check_user_can_edit(self, user):
if user.is_superuser:
return True
if self.author.filter(id=user.id).exists():
return True
return False