Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check upload permission for upload route and "upload" nav item #903

Merged

Conversation

geichelberger
Copy link
Contributor

This PR fixes the problem that Jose sees the upload menu entry and can access the upload form without having the appropriate role.

grafik

Expected:
grafik

Hide the upload menu entry and show an error on the upload page
if the user misses the upload permission.
@owi92
Copy link
Member

owi92 commented Jul 7, 2023

Thank you for this. @LukasKalbertodt asked me (internally) to fix this in #896 and I have done so, but since that is more focused on design and therefore waiting for approval from ETH and Bern, I think we can get your PR in before that. I'd still wait for Lukas' approval before merging, but that is more of a formality in this case.

@oas777
Copy link
Collaborator

oas777 commented Jul 7, 2023

So now poor Jose doesn't see the upload option? Nice. Thanks, Gregor.

Copy link
Member

@LukasKalbertodt LukasKalbertodt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As Ole said, the other PR will change this anyway but that might still need some time/discussion. So let's merge this.

@LukasKalbertodt LukasKalbertodt changed the title Check upload permission Check upload permission for upload route and "upload" nav item Jul 12, 2023
@LukasKalbertodt LukasKalbertodt merged commit 5bda4fb into elan-ev:master Jul 12, 2023
2 checks passed
@owi92 owi92 added the changelog:user User facing changes label Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:user User facing changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants