Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix team share rights lost on edition - Close #1352
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 22, 2017
1 parent a03a696 commit ce68125
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/action.share/res/react/model/ShareModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,13 @@
var entries = this.getSharedUsers();
var index = 0;
entries.map(function(e){
params['user_' + index] = e.ID;
params['user_' + index] = (e.TYPE && e.TYPE === 'team' ? '/AJXP_TEAM/' : '') + e.ID;
params['right_read_' + index] = (e.RIGHT.indexOf('r') !== -1) ? 'true' : 'false';
params['right_write_' + index] = (e.RIGHT.indexOf('w') !== -1) ? 'true' : 'false';
if(e.WATCH){
params['right_watch_' + index] = 'true';
}
params['entry_type_' + index] = e.TYPE == 'group' ? 'group' : 'user';
params['entry_type_' + index] = (e.TYPE === 'group' || e.TYPE === 'team') ? 'group' : 'user';
index ++;
});
}
Expand Down

0 comments on commit ce68125

Please sign in to comment.