diff options
author | brantje <brantje@gmail.com> | 2016-10-03 19:44:49 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2016-10-03 19:44:49 +0300 |
commit | 0d37b69d3b82bdb6f1c84a882913ec8635f800a6 (patch) | |
tree | 7dc271aa96e7b50733a63c31da28555ab1a7852b /templates/views/partials/forms/share_credential/basics.html | |
parent | f42d1e3c85d2ad337aef075dc5a40e05f93196f2 (diff) |
Push baby, added setPermission
Diffstat (limited to 'templates/views/partials/forms/share_credential/basics.html')
-rw-r--r-- | templates/views/partials/forms/share_credential/basics.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/views/partials/forms/share_credential/basics.html b/templates/views/partials/forms/share_credential/basics.html index 9fc1b401..9770140b 100644 --- a/templates/views/partials/forms/share_credential/basics.html +++ b/templates/views/partials/forms/share_credential/basics.html @@ -68,12 +68,11 @@ <i class="fa fa-user" ng-if="user.type === 'user'"></i> <i class="fa fa-group" ng-if="user.type === 'group'"></i> {{user.userId}} - {{user}} </td> - <td><input type="checkbox" ng-checked="hasPermission(user.acl, default_permissions.permissions.READ)"> </td> - <td><input type="checkbox" ng-checked="hasPermission(user.acl, default_permissions.permissions.WRITE)"></td> - <td><input type="checkbox" ng-checked="hasPermission(user.acl, default_permissions.permissions.FILES)"></td> - <td><input type="checkbox" ng-checked="hasPermission(user.acl, default_permissions.permissions.HISTORY)"></td> + <td><input type="checkbox" ng-click="setPermission(user.acl, default_permissions.permissions.READ)" ng-checked="hasPermission(user.acl, default_permissions.permissions.READ)"> </td> + <td><input type="checkbox" ng-click="setPermission(user.acl, default_permissions.permissions.WRITE)" ng-checked="hasPermission(user.acl, default_permissions.permissions.WRITE)"></td> + <td><input type="checkbox" ng-click="setPermission(user.acl, default_permissions.permissions.FILES)" ng-checked="hasPermission(user.acl, default_permissions.permissions.FILES)"></td> + <td><input type="checkbox" ng-click="setPermission(user.acl, default_permissions.permissions.HISTORY)" ng-checked="hasPermission(user.acl, default_permissions.permissions.HISTORY)"></td> </tr> </table> </div> |