Skip to content

Create a project button is visible despite of the user has no authority #920

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

Closed
pjchungmd opened this issue Jul 22, 2020 · 0 comments · Fixed by #1230
Closed

Create a project button is visible despite of the user has no authority #920

pjchungmd opened this issue Jul 22, 2020 · 0 comments · Fixed by #1230
Labels
bug Something isn't working

Comments

@pjchungmd
Copy link

How to reproduce the behaviour

Non-superuser (e.g. annotator) can see the "Create" project button when logged in.

Screenshot from 2020-07-22 07-19-47

Clicking on the "Create" button brings up the appropriate modal:

Screenshot from 2020-07-22 07-20-09

However submitting the form leads to:

Screenshot from 2020-07-22 07-20-15

Expected behavior would be not to show the "Create" button in the first place for users without the privileges (as in 0.x version).

Your Environment

  • Operating System: Ubuntu 18.04
  • Python Version Used: 3.6.11
  • When you install doccano: 7/22/2020
  • How did you install doccano (Heroku button etc): git clone
@Hironsan Hironsan added the bug Something isn't working label Jul 22, 2020
@icoxfog417 icoxfog417 changed the title Non-Superuser Can See Create Button With 403 Thrown After Attempting to New Create Project Create a project button is visible despite of the user has no authority Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants