Scalr_Account::initializeAcl PHP Method

initializeAcl() public method

Initializes ACL Roles for account
public initializeAcl ( )
    public function initializeAcl()
    {
        $ret = array();
        if (!$this->id) {
            throw new \Exception("Account is not created.");
        }
        $acl = $this->getContainer()->acl;
        $ret['account_role'][$acl::ROLE_ID_FULL_ACCESS] = $acl->getFullAccessAccountRole($this->id, true);
        $ret['account_role'][$acl::ROLE_ID_EVERYTHING_FORBIDDEN] = $acl->getNoAccessAccountRole($this->id, true);
        return $ret;
    }