Fix accessing view queryset property in api/permissions.py
Fixes an error 500 raised when accessing certain views of the API (such as /api/switchs/ports-config
):
Do not evaluate the `.queryset` attribute directly, as the result will be cached and reused between requests. Use `.all()` or `.get_queryset()` instead.