Browse Source

Merge branch 'fix/my-permissions' into 'stage'

FIX | Fix get my permissions transformed

See merge request jetup/rws/api-rws!247
pull/1/head
Coder 2 years ago
parent
commit
aef5e4335f
  1. 3
      src/domain/permissions/classes/permissions.ts

3
src/domain/permissions/classes/permissions.ts

@ -194,7 +194,8 @@ export class Permission { @@ -194,7 +194,8 @@ export class Permission {
const permissionsForAllUsers = {}
allUserIds.map(id => {
const actionsList = this.getPermissionsForUserTasks(id)
if (!_.isEmpty(actionsList) && id !== permissionsOwnerId) {
// if (!_.isEmpty(actionsList) && id !== permissionsOwnerId) {
if (!_.isEmpty(actionsList)) {
permissionsForAllUsers[id] = actionsList
}
})

Loading…
Cancel
Save