Merge pull request #2845 from FinnStutzenstein/Issue2833

Fixing user list view with restricted permissions (closes #2833)
This commit is contained in:
Emanuel Schütze 2017-01-14 10:47:12 +01:00 committed by GitHub
commit 99a771ac6c

View File

@ -400,12 +400,16 @@
</small> </small>
</div> </div>
<div style="width: 40%;" class="pull-right" os-perms="users.can_see_extra_data"> <div style="width: 40%;" class="pull-right" os-perms="users.can_see_extra_data">
<div os-perms="users.can_manage"> <div os-perms="users.can_manage" ng-show="user.hover || user.is_present">
<span class="pointer nobr" ng-click="user.is_present = !user.is_present; save(user);" ng-show="user.hover || user.is_present"> <span class="pointer nobr" ng-click="user.is_present = !user.is_present; save(user);">
<i class="fa" ng-class="user.is_present ? 'fa-check-square-o' : 'fa-square-o'"></i> <i class="fa" ng-class="user.is_present ? 'fa-check-square-o' : 'fa-square-o'"></i>
<span class="spacer-left" translate>Present</span> <span class="spacer-left" translate>Present</span>
</span> </span>
</div> </div>
<div os-perms="!users.can_manage" class="nobr" ng-show="user.is_present">
<i class="fa fa-check-square-o"></i>
<span class="spacer-left" translate>Present</span>
</div>
</div> </div>
</div> </div>