1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 14:19:43 +02:00

Use default Ember object ID for permissions model

This commit is contained in:
McMatts 2018-04-26 12:03:23 +01:00
parent 962a8369aa
commit b40db1433e
2 changed files with 13 additions and 1 deletions

View file

@ -13,6 +13,7 @@ import { inject as service } from '@ember/service';
import { A } from "@ember/array"
import { debounce } from '@ember/runloop';
import ModalMixin from '../../mixins/modal';
import stringUtil from '../../utils/string';
import Component from '@ember/component';
export default Component.extend(ModalMixin, {
@ -80,6 +81,7 @@ export default Component.extend(ModalMixin, {
permissionRecord(who, whoId, name) {
let raw = {
id: stringUtil.makeId(16),
orgId: this.get('folder.orgId'),
folderId: this.get('folder.id'),
whoId: whoId,