fix(manager): manager access && flag isvisible
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
{% block body %}
|
||||
{{ form_start(form) }}
|
||||
<h1 class="page-header">
|
||||
{% if access=="admin" or access=="modo" %}
|
||||
{% if access=="admin" or access=="modo" or access=="manager" %}
|
||||
{% if mode=="update" %}
|
||||
Modification Utilisateur = {{ user.username}}
|
||||
{% else %}
|
||||
@ -191,7 +191,7 @@
|
||||
{{ form_row(form.firstname) }}
|
||||
{{ form_row(form.lastname) }}
|
||||
{{ form_row(form.email) }}
|
||||
{{ form_row(form.isvisible) }}
|
||||
{%if form.isvisible is defined %}{{ form_row(form.isvisible) }}{%endif%}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
<table class="table table-striped table-bordered table-hover wrap" id="dataTables" style="width:100%; font-size:11px;">
|
||||
<thead>
|
||||
<tr>
|
||||
{% if access=="admin" or access=="modo"%}
|
||||
{% if access=="admin" or access=="modo" or access=="manager"%}
|
||||
<th class="no-sort">Action</th>
|
||||
{% endif %}
|
||||
|
||||
@ -67,6 +67,9 @@
|
||||
{% elseif access=="modo" %}
|
||||
order: [[ 2, "asc" ]],
|
||||
ajax: "{{ path('app_modo_user_tablelist') }}",
|
||||
{% elseif access=="manager" %}
|
||||
order: [[ 2, "asc" ]],
|
||||
ajax: "{{ path('app_manager_user_tablelist') }}",
|
||||
{% else %}
|
||||
order: [[ 1, "asc" ]],
|
||||
ajax: "{{ path('app_all_user_tablelist') }}",
|
||||
|
Reference in New Issue
Block a user