Skip to content

Commit

Permalink
fix(core): fixed edit permission for user (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
serge1peshcoff committed Jun 21, 2020
1 parent 097e998 commit aa8e7f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/core/members/Single.vue
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export default {
// set the permission to true if at least one set of permissions have
// the required permission (either first for global, or others for local).
this.can.setActive = responses.some(list => list.data.data.some(permission => permission.combined.endsWith('update_active:member')))
this.can.edit = responses.some(list => list.data.data.some(permission => permission.combined.endsWith('update:member')))
this.can.edit = responses.some(list => list.data.data.some(permission => permission.combined.endsWith('update:member'))) || this.isOwnProfile
this.can.delete = responses.some(list => list.data.data.some(permission => permission.combined.endsWith('delete:user')))
this.isLoading = false
Expand Down

0 comments on commit aa8e7f8

Please sign in to comment.