mirror of
https://github.com/documize/community.git
synced 2025-07-31 02:59:44 +02:00
Fix space permissions group vs. user role overriding
This commit is contained in:
parent
e1d2d4c037
commit
ad4030bc17
11 changed files with 691 additions and 680 deletions
|
@ -122,6 +122,7 @@ export default BaseService.extend({
|
|||
if (is.not.array(response)) response = [];
|
||||
|
||||
data = response.map((obj) => {
|
||||
obj.id = 'sp-' + obj.id;
|
||||
let data = this.get('store').normalize('space-permission', obj);
|
||||
return this.get('store').push(data);
|
||||
});
|
||||
|
@ -165,6 +166,7 @@ export default BaseService.extend({
|
|||
let url = `space/${folderId}/permissions/user`;
|
||||
|
||||
return this.get('ajax').request(url).then((response) => {
|
||||
response.id = 'u-' + response.id;
|
||||
let data = this.get('store').normalize('space-permission', response);
|
||||
let data2 = this.get('store').push(data);
|
||||
this.set('permissions', data2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue