Fix the group numbering to ignore admin group

This commit is contained in:
Johannes Zellner
2016-02-26 00:02:38 +01:00
parent bae0d728b3
commit 23e5bed247

View File

@@ -247,7 +247,7 @@
<span class="text-muted">{{ user.email }}</span>
</td>
<td class="text-center hand" ng-click="showUserEdit(user)">
{{ user.groupIds.length }}
{{ user.groupIds.length - (user.groupIds.indexOf('admin') !== -1 ? 1 : 0) }}
</td>
<td class="text-right" style="vertical-align: bottom">
<button ng-show="!isMe(user)" class="btn btn-xs btn-default" ng-click="sendInvite(user)" title="Send Invite"><i class="fa fa-paper-plane-o"></i></button>