check if the user is an admin

This commit is contained in:
Davide Alberani 2017-03-01 09:10:11 +01:00
parent ef34a93699
commit 4cbb8dca8a

View file

@ -25,7 +25,7 @@
{{user.email}}
</md-table-cell>
<md-table-cell class="center-content">
<md-icon>done</md-icon>
<md-icon v-if="user.isAdmin">done</md-icon>
</md-table-cell>
<md-table-cell v-if="loggedInUser.isAdmin" class="center-content">
<md-button class="md-icon-button" @click="deleteUser(user._id)">