Enabled the API to use the currently logged-in users permissions against...

... api endpoints
You just removed this function from this class