Scalr\Upgrade\Updates\Update20151222172257::run3 PHP Метод

run3() защищенный Метод

protected run3 ( $stage )
    protected function run3($stage)
    {
        $this->console->out("Adding ACL permissions to update Projects (account scope)");
        $this->db->Execute("\n            INSERT IGNORE INTO `acl_role_resource_permissions` (`role_id`, `resource_id`, `perm_id`, `granted`)\n            VALUES (?, ?, ?, 1)\n        ", [Acl::ROLE_ID_FULL_ACCESS, Acl::RESOURCE_ANALYTICS_PROJECTS_ACCOUNT, Acl::PERM_ANALYTICS_PROJECTS_ACCOUNT_UPDATE]);
        $this->db->Execute("\n            INSERT IGNORE INTO `acl_account_role_resource_permissions` (`account_role_id`, `resource_id`, `perm_id`, `granted`)\n            SELECT `account_role_id`, ?, ?, `granted` FROM `acl_account_role_resource_permissions`\n            WHERE `resource_id` = ? AND `perm_id` = ?\n        ", [Acl::RESOURCE_ANALYTICS_PROJECTS_ACCOUNT, Acl::PERM_ANALYTICS_PROJECTS_ACCOUNT_UPDATE, Acl::RESOURCE_ANALYTICS_ACCOUNT, static::PERM_ANALYTICS_ACCOUNT_MANAGE_PROJECTS]);
    }