Skip to content

Commit

Permalink
Merge pull request #2327 from noirbizarre/gh2324-profile-picture-perm…
Browse files Browse the repository at this point in the history
…issions

Fix non-admin user not being able to change their profile picture
  • Loading branch information
noirbizarre committed Sep 26, 2019
2 parents 24c7244 + 28a855a commit 279f530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,7 @@

- Prevent Google ranking spam attacks on reuse pages (`rel=nofollow` on reuse link) [#2320](https://github.com/opendatateam/udata/pull/2320)
- Display admin resources list actions only if user has permissions to edit [#2326](https://github.com/opendatateam/udata/pull/2326)
- Fix non-admin user not being able to change their profile picture [#2327](https://github.com/opendatateam/udata/pull/2327)

## 1.6.15 (2019-09-11)

Expand Down
2 changes: 1 addition & 1 deletion js/components/user/profile.vue
Expand Up @@ -51,7 +51,7 @@ export default {
return operation.urlify({});
},
can_edit() {
return this.$root.me.is_admin || this.user.id == this.$root.me;
return this.$root.me.is_admin || this.user.id == this.$root.me.id;
}
},
components: {Box, ImageButton},
Expand Down

0 comments on commit 279f530

Please sign in to comment.