added the hasPermission function