We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9767fa4 commit 214482eCopy full SHA for 214482e
2 files changed
client/app/modules/users/controllers/users.ctrl.js
@@ -56,4 +56,13 @@ angular.module('com.module.users')
56
});
57
58
};
59
+
60
+ $scope.loading = true;
61
+ $scope.users = User.find({
62
+ filter: {
63
+ include: ['roles']
64
+ }
65
+ }, function () {
66
+ $scope.loading = false;
67
+ });
68
common/models/user.json
@@ -19,6 +19,12 @@
19
"type": "hasMany",
20
"model": "userCredential",
21
"foreignKey": "userId"
22
+ },
23
+ "roles": {
24
+ "type": "hasMany",
25
+ "model": "Role",
26
+ "through": "RoleMapping",
27
+ "foreignKey": "principalId"
28
}
29
},
30
"acls": [
0 commit comments