Scalr\Upgrade\Updates\Update20150505143635::isGrantedAccountPermission PHP Method

isGrantedAccountPermission() private method

Gets granted value for the specified permission of account level ACL role
private isGrantedAccountPermission ( string $accountRoleId, string $resourceId, string $permissionId ) : string
$accountRoleId string The identifier of the account role
$resourceId string The identifier of the ACL resource
$permissionId string The identifier of the ACL permission
return string Returns granted value
    private function isGrantedAccountPermission($accountRoleId, $resourceId, $permissionId)
    {
        return $this->db->GetOne("\n            SELECT granted FROM acl_account_role_resource_permissions\n            WHERE account_role_id = ? AND resource_id = ? AND perm_id = ?\n        ", [$accountRoleId, $resourceId, $permissionId]);
    }