mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
More SQL changes in line with new schema
This commit is contained in:
parent
944fd98421
commit
8ee63de6c7
14 changed files with 45 additions and 37 deletions
|
@ -151,7 +151,7 @@ export default Component.extend(AuthProvider, ModalMixin, {
|
|||
this.get('groupSvc')
|
||||
.update(group)
|
||||
.then(() => {
|
||||
this.load();
|
||||
this.loadGroups();
|
||||
});
|
||||
|
||||
this.modalClose('#edit-group-modal');
|
||||
|
|
|
@ -204,7 +204,7 @@ export default Component.extend(AuthProvider, ModalMixin, TooltipMixin, {
|
|||
// mark up groups user belongs to...
|
||||
let groups = this.get('groups');
|
||||
groups.forEach((g) => {
|
||||
let hasGroup = userGroups.findBy('roleId', g.get('id'));
|
||||
let hasGroup = userGroups.findBy('groupId', g.get('id'));
|
||||
g.set('isMember', is.not.undefined(hasGroup));
|
||||
})
|
||||
this.set('groups', groups);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue