-
Notifications
You must be signed in to change notification settings - Fork 7
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
Plugin bypassing user permissions #19
Comments
Hi, which permission is this directly related to |
However, users falling into this permission group can still drag around devices and save new positions via the plugin, even if the status constraint is not met. |
Any updates? |
I can confirm this. I'm also having this issue. It looks like it is directly related to the permission |
I have pushed a fix that will check for user permissions on page load this will disable any devices in the rack from being able to be moved and also prevent other devices moving it out the way when dragging devices. I have implemented pop ups to show issues with permissions when it occurs. I will issue a new release within the next few days. |
@minitriga hm, I've updated the plugin (says 1.1.2 now), but the code changes for the fix don't seem to apply?
|
@Azmodeszer Thank you for spotting this. Upgrade to 1.1.3 looks like there was an issue with the 1.1.2 build. |
netbox-reorder-rack version
1.1.1
Python version
3.11
Steps to Reproduce
I have a permission system in place that essentially creates a special group that cannot edit existing objects per se, but can only add new data provided a certain status value is selected for the object (edits work only if that status is still present). However, I discovered that these users can still use the reordering plugin and adjust a device's position, even though that is explicitly prohibited by the permissions.
Expected Behavior
Reordering a device (i.e. changing its rack unit) as a user within the restricted group without the status required by the permissions throws an object-level permissions violation.
Alternately, the Reorder button does not appear in the first place.
Observed Behavior
The button is available to users within the restricted group and the edit is saved.
The text was updated successfully, but these errors were encountered: