Open candlerb opened 1 month ago
Hi Brian,
thank you for reporting this issue. I didn't even know that a non-login-mode exists. Individual options - as the name implies - store options for registered individuals (aka users), which obviously are not anonymous. NTV tries to load/save options for a specific user id, which does not apply here.
I'm not sure if individual options make sense at all for users who share these options with other anonymous users. How do you suggest we should handle this issue?
I guess the simplest would be to hide the Topology menu for non-authenticated users. Alternatively, have a fixed set of defaults that anonymous users get, and can't save. (Like the settings that used to be in the PLUGINS_CONFIG in older version of NTV)
NetBox version
v4.1.3
Topology Views version
v4.1.0
Steps to Reproduce
Install NTV on a server configured for anonymous access:
Click on the "Topology Views > Topology" nav item (
/plugins/netbox_topology_views/topology/
)Expected Behavior
Topology view page should be displayed normally
Observed Behavior
An exception is raised:
Setting DEBUG=True, the backtrace suggests it's to do with a save hook from
IndividualOptions.objects.get_or_create()