checkPermission
Function to check if application has permission
Return
Does the application has the requested permission?
Parameters
permission
name of the permission to check
Function to check if application has permission
Does the application has the requested permission?
name of the permission to check