дело сделано

This commit is contained in:
Denis 2021-11-09 00:52:09 +03:00
parent 273e675b0b
commit 8a7c88cfd8

View File

@ -21,7 +21,7 @@ class UserInfo(models.Model):
notification_solution_result = models.BooleanField(default=False) notification_solution_result = models.BooleanField(default=False)
def _append_task(self, task, tasks): def _append_task(self, task, tasks):
if task.creator == self.user or task.public: if task.creator == self.user or task.public or self.user.is_superuser:
tasks.append(task) tasks.append(task)
return return
for st in SetTask.objects.filter(task=task): for st in SetTask.objects.filter(task=task):