Skip to content

Commit ae27f20

Browse files
author
elijah
committed
Merge pull request #151 from apinf/feature/userRoles
Created RolesSchema
2 parents fd5f9f2 + 6710250 commit ae27f20

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

collections/roles.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
var RolesSchema = new SimpleSchema({
2+
name: {
3+
type: String
4+
}
5+
});
6+
7+
Meteor.roles.attachSchema(RolesSchema);

lib/_config/adminConfig.coffee

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
{label: 'Backend Host', name: 'backend_host'}
2828
]
2929
}
30+
'Meteor.roles': {
31+
label: 'Roles',
32+
tableColumns: [
33+
{label: 'Name', name: 'name'}
34+
]
35+
}
3036
ApiUmbrellaAdmins: {
3137
color: 'blue'
3238
icon: 'user-md'

0 commit comments

Comments
 (0)