Delete the sendRequest() method as it has the same function as the method isAuthorized().
Changed parameter method (which is Method type) to a String parameter methodName, as we only need to use the name of the method.
Removed the permission check from the data.xml file.