Only show disable link if user has delete ccpo user perms
This commit is contained in:
parent
14978142b1
commit
8b23173fef
@ -19,6 +19,9 @@
|
|||||||
<th>{{ "common.name" | translate }}</th>
|
<th>{{ "common.name" | translate }}</th>
|
||||||
<th>{{ "common.email" | translate }}</th>
|
<th>{{ "common.email" | translate }}</th>
|
||||||
<th>{{ "common.dod_id" | translate }}</th>
|
<th>{{ "common.dod_id" | translate }}</th>
|
||||||
|
{% if user_can(permissions.DELETE_CCPO_USER) %}
|
||||||
|
<th></th>
|
||||||
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -33,11 +36,13 @@
|
|||||||
<td>{{ user.full_name }}</td>
|
<td>{{ user.full_name }}</td>
|
||||||
<td>{{ user.email }}</td>
|
<td>{{ user.email }}</td>
|
||||||
<td>{{ user.dod_id }}</td>
|
<td>{{ user.dod_id }}</td>
|
||||||
<td>
|
{% if user_can(permissions.DELETE_CCPO_USER) %}
|
||||||
<a v-on:click="openModal('{{ modal_id }}')" class='usa-button {{ disable_button_class }}'>
|
<td>
|
||||||
{{ "common.disable" | translate }}
|
<a v-on:click="openModal('{{ modal_id }}')" class='usa-button {{ disable_button_class }}'>
|
||||||
</a>
|
{{ "common.disable" | translate }}
|
||||||
</td>
|
</a>
|
||||||
|
</td>
|
||||||
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user