Scalr\Upgrade\Updates\Update20150505143635::isGrantedAccountResource PHP Метод

isGrantedAccountResource() приватный Метод

Gets granted value for the specified resource of account level ACL role
private isGrantedAccountResource ( string $accountRoleId, string $resourceId ) : string
$accountRoleId string The identifier of the account role
$resourceId string The identifier of the ACL resource
Результат string Returns granted value
    private function isGrantedAccountResource($accountRoleId, $resourceId)
    {
        return $this->db->GetOne("\n            SELECT granted FROM acl_account_role_resources\n            WHERE account_role_id = ? AND resource_id = ?\n        ", [$accountRoleId, $resourceId]);
    }