Merge branch 'master' of https://gitlab.com/mathwave/sprint
This commit is contained in:
commit
90b2806bb0
@ -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):
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
{% extends 'base_main.html' %}
|
{% extends 'base_main.html' %}
|
||||||
|
|
||||||
|
{% block title %}сеты{% endblock %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
@ -44,4 +46,4 @@
|
|||||||
{% for set in user.userinfo.available_sets %}
|
{% for set in user.userinfo.available_sets %}
|
||||||
<a href="/set?set_id={{ set.id }}">{{ set.name }}</a> {% if set.creator == user %}<a href="/admin/set?set_id={{ set.id }}"><i class="fa fa-pencil"></i> </a>{% endif %}<br>
|
<a href="/set?set_id={{ set.id }}">{{ set.name }}</a> {% if set.creator == user %}<a href="/admin/set?set_id={{ set.id }}"><i class="fa fa-pencil"></i> </a>{% endif %}<br>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user