New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display user email for administrators #1808
Conversation
@@ -128,6 +138,7 @@ export default { | |||
id | |||
name | |||
slug | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the moment, the backend does not allow anybody except the owner to see the email
of the user. You will need to change permissions in the backend.
I think I would still feel safe, if only the owner or an admin user can see the email.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks @roschaefer
- Refactor all tests on permissionsMiddleware
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me @aonomike!
And you even refactored another backend test!!
Great job!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me, this looks good and I can't see why we should not merge it. It's tested and there is nothing that comes to my mind, which we need to do before merging. Great job @aonomike !
But I'm a little hesitant to merge this before our daily standup. We could hear back from the others if we missed anything important here. it's a matter of security/data-privacy after all 馃槈
).resolves.toMatchObject({ | ||
errors: [{ message: 'Not Authorised!' }], | ||
data: { User: [null] }, | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so much better 馃槏
@@ -33,6 +33,11 @@ | |||
<b>{{ scope.row.name | truncate(20) }}</b> | |||
</nuxt-link> | |||
</template> | |||
<template slot="email" slot-scope="scope"> | |||
<a :href="`mailto:${scope.row.email}`"> | |||
<b>{{ scope.row.email }}</b> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of those emails are quite long. Maybe we should think about how to fit the data into the layout? E.g. at some places in the app, we use | truncate(20)
filter.
Although I'm OK to merge this and wait for our admins to complain about it 馃槈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I thought as well, @datenbrei mentioned that they might be copying and pasting the links, so maybe it's more difficult if it's truncated??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mattwr18 @roschaefer
Let me know if I need to update this :D
馃嵃 Pullrequest
Issues
fixes #1704
Images