Users getting an error on login after upgrade. #19726
-
Hello, I will start out by saying that I know absolutely nothing about django. I have done my best to upgrade netbox from v3.0 to the newest by upgrading from one version to the next and migrating the DB each time. Admins are able to login and see everything just fine. When a normal user logs in though, this error comes up:
Any help would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
More info: If a user uses a URL such as https://(host)/dcim/sites/ then they are able to get to the page with no errors. It is only when they login and try to access the main home page, that's when the error comes up. |
Beta Was this translation helpful? Give feedback.
-
I found it! There were permissions setup for cables and the constraints were set like: [{"_termination_a_device__tenant__slug": "(tenant name)"}, {"_termination_b_device__tenant__slug": "(tenant name)"}] So to keep this working, I have set the constraints on these permissions to: {"terminations___device__tenant__slug": "(tenant name)"} I'm not sure if this is really the correct way to do this and I don't know if it will break in future updates, but this is how I'm getting around this issue. Thank you! |
Beta Was this translation helpful? Give feedback.
I found it! There were permissions setup for cables and the constraints were set like:
[{"_termination_a_device__tenant__slug": "(tenant name)"}, {"_termination_b_device__tenant__slug": "(tenant name)"}]
So to keep this working, I have set the constraints on these permissions to:
{"terminations___device__tenant__slug": "(tenant name)"}
I'm not sure if this is really the correct way to do this and I don't know if it will break in future updates, but this is how I'm getting around this issue. Thank you!