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

Don't display the add project link/button if the user does not have the project.create permission #185

Closed
seav opened this issue May 12, 2016 · 1 comment

Comments

@seav
Copy link
Contributor

seav commented May 12, 2016

Currently, any logged-in user can click the add project link/button and this displays a three-page project creation wizard. It is only after going through all three pages that the user is given a permission denied error if the user does not actually have the project.create action permission.

It would be better in terms of UX if the link/button is hidden if the user does not have this permission in the first place or immediately given the permission denied error when accessing the first page of the wizard.

But only if the database has organizations:

context['add_allowed'] = Organization.objects.count() > 0
@seav seav added the bug label May 12, 2016
@seav seav added this to the Version 0.1 milestone May 12, 2016
@ian-ross ian-ross self-assigned this Jun 18, 2016
@seav seav added the ui/ux label Jun 29, 2016
@wonderchook wonderchook modified the milestones: Post July Release Sprint, Version 0.1 Jul 8, 2016
@clash99
Copy link
Contributor

clash99 commented Jul 15, 2016

Same thought should apply to adding a new location to a project. Instead of messaging after the fact, we should hid the button from users that aren't eligible for that action.

screenshot 2016-07-15 13 21 09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants