Added method for getting the app's permissions.