This commit is contained in:
Egor Matveev 2021-11-12 01:30:59 +03:00
commit 90b2806bb0
2 changed files with 4 additions and 2 deletions

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):

View File

@ -1,5 +1,7 @@
{% extends 'base_main.html' %}
{% block title %}сеты{% endblock %}
{% block main %}
<table>
<tr>