Join GitHub today
api: Added API calls for routing and resources management #8017
This PR includes API calls:
DO NOT DELETE THIS TEXT
If you would like to test this pull request then please run:
An initial pass for comments done.
You've got a lot of is_read() checks going on when you could actually check if the user has permission for the device using a query as per other calls in the api. The idea being:
if is_admin() or is_read() == false then you need to expand the mysql query to check for devices_perms as well to see if the normal user has access to those devices (see other api calls for examples).