Skip to content

Creating a rack checks for wrong permissions #4067

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
jeremystretch opened this issue Jan 31, 2020 · 0 comments
Closed

Creating a rack checks for wrong permissions #4067

jeremystretch opened this issue Jan 31, 2020 · 0 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@jeremystretch
Copy link
Member

Environment

  • Python version: 3.6.8
  • NetBox version: 2.7.3

Steps to Reproduce

  1. Assign a user permission to create a rack (dcim.add_rack).
  2. Log in as that user and attempt to create a rack at /dcim/racks/add/

Expected Behavior

The rack creation form should be displayed.

Observed Behavior

A 403 error (permission denied) is raised. This occurs because the URL configuration is actually pointing to RackEditView instead of RackCreateView, so Django is looking for the dcim.change_rack permission instead. (This permissions check is the only different between the two views.)

@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application status: accepted This issue has been accepted for implementation labels Jan 31, 2020
@jeremystretch jeremystretch self-assigned this Jan 31, 2020
@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

1 participant