mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-11-27 00:47:10 +00:00
Remove custom context processor
This commit is contained in:
parent
d0086c84e8
commit
9f52bed890
@ -23,9 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
|
|
||||||
{% block sidebar %}
|
{% block sidebar %}
|
||||||
{% if is_perm %}
|
|
||||||
<a class="list-group-item list-group-item-info" href="{% url "logs:index" %}">
|
<a class="list-group-item list-group-item-info" href="{% url "logs:index" %}">
|
||||||
<i class="glyphicon glyphicon-stats"></i>
|
<i class="glyphicon glyphicon-stats"></i>
|
||||||
Évènements
|
Évènements
|
||||||
@ -34,6 +32,4 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
<i class="glyphicon glyphicon-stats"></i>
|
<i class="glyphicon glyphicon-stats"></i>
|
||||||
Actions sur la bdd
|
Actions sur la bdd
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
def context_user(request):
|
|
||||||
is_perm = request.user.has_perms(['perm'])
|
|
||||||
return {
|
|
||||||
'is_perm': is_perm,
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user