forked from DGNum/gestioCOF
permission added
This commit is contained in:
parent
8e7b9e2fd3
commit
f18bb9f336
2 changed files with 7 additions and 0 deletions
|
@ -19,11 +19,13 @@
|
|||
<div class="content-left-top" id="open_status_parent">
|
||||
<div class="line line-big" id="open_status">?????</div>
|
||||
</div>
|
||||
{% if perms.kfet.is_team %}
|
||||
<div class="buttons">
|
||||
<a class="btn btn-primary btn-lg" id="force_close_button">
|
||||
Fermer manuellement
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8 col-md-9 col-content-right">
|
||||
|
|
|
@ -124,6 +124,11 @@ class UpdateForceClose(View):
|
|||
return HttpResponse("closed : %r at %s" % (force_close_get,
|
||||
time.isoformat()))
|
||||
|
||||
@method_decorator(login_required)
|
||||
@method_decorator(teamkfet_required)
|
||||
def dispatch(self, *args, **kwargs):
|
||||
return super(UpdateForceClose, self).dispatch(*args, **kwargs)
|
||||
|
||||
|
||||
@teamkfet_required
|
||||
def login_genericteam(request):
|
||||
|
|
Loading…
Reference in a new issue