public hasAccess ( string $publicKey, string $resource, string $user = null ) : boolean | ||
$publicKey | string | Public key to check access for |
$resource | string | Resource identifier (e.g. image.get, images.post) |
$user | string | Optional user which the resource belongs to |
Результат | boolean | True if public key has access, false otherwise |
function hasAccess($publicKey, $resource, $user = null);