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