Merge branch 'feature-8-superuserstasks' into 'master'

дело сделано

See merge request mathwave/sprint!5
This commit is contained in:
Egor Matveev 2021-11-08 22:07:14 +00:00
commit db6e65f0db

View File

@ -21,7 +21,7 @@ class UserInfo(models.Model):
notification_solution_result = models.BooleanField(default=False)
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)
return
for st in SetTask.objects.filter(task=task):