Fixing user list view with restricted permissions (closes #2833)
This commit is contained in:
parent
d22dff2743
commit
c0f092d811
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user