Check if a given permission is a ResourcePermission. When resourceType is supplied as the second parameter, also checks if the permission has the specified resource type.
resourceType
Optional
Check if a given permission is a ResourcePermission. When
resourceTypeis supplied as the second parameter, also checks if the permission has the specified resource type.