[change] Remove redundant code for checking view permissions
ManishShah120 opened this issue · 1 comments
ManishShah120 commented
openwisp-network-topology/openwisp_network_topology/api/views.py
Lines 31 to 52 in 3c34047
I guess, this portion of code does the same thing as what we did recently in this PR openwisp/openwisp-users#251
So, will it not better if we simply import it from there?
nemesifier commented
openwisp-network-topology/openwisp_network_topology/api/views.py
Lines 31 to 52 in 3c34047
I guess, this portion of code does the same thing as what we did recently in this PR openwisp/openwisp-users#251
So, will it not better if we simply import it from there?
This code was added before we introduced openwisp/openwisp-users#251 so yes, it will have to be updated.