-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Permissions for device adding is not working #1263
Comments
This is because we're using one view to handle both creates and edits:
(This is a common pattern for most objects in NetBox, not just devices.) We could add a second view named |
I cannot see now use case where we would like to use it, this was just like big confusion and you probably labeled correctly. As we are starting to use netbox, we are trying different scenariosm and one of them was to add user which can only add devices. Maybe this is somehow connected to API permissions (we didn't checked that) ? If it not affects API part, then as a fix i would say remove Add permision and rename Change to Add/Change |
Even if it's a rare use case, I think it makes sense to enforce the "add" and "change" permissions separately to ensure they do exactly what they sound like. It should be easy enough to tweak the ObjectEditView to apply one or the other appropriately.
Just FYI the API utilizes the same permissions as the web UI. |
Issue type:
**Python version: 3.4
**NetBox version: 2.0.5
When User Group has only can add permission in menu you can see link to add device, but clicking on it it asks for login (you already are logged in)
When you add permission to change object then you can add and change object without the problems.
The text was updated successfully, but these errors were encountered: