public function hasAccess() { if (parent::hasAccess()) { return $this->user->getType() == Scalr_Account_User::TYPE_ACCOUNT_OWNER || $this->user->isTeamOwner() ? true : false; } else { return false; } }
public function hasAccess() { $enabledPlatforms = $this->getEnvironment()->getEnabledPlatforms(); if (!in_array(SERVER_PLATFORMS::AZURE, $enabledPlatforms)) { throw new Exception('You need to enable Azure platform for current environment'); } return parent::hasAccess(); }
public function hasAccess() { if (!parent::hasAccess() || !$this->request->isAllowed(Acl::RESOURCE_AWS_RDS)) { return false; } if (!in_array(SERVER_PLATFORMS::EC2, $this->getEnvironment()->getEnabledPlatforms())) { throw new Exception("You need to enable RDS platform for current environment"); } return true; }
/** * {@inheritdoc} * @see Scalr_UI_Controller::hasAccess() */ public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_GCE_SNAPSHOTS); }
/** * {@inheritdoc} * @see Scalr_UI_Controller::hasAccess() */ public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_ADMINISTRATION_SCRIPTS); }
public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_DEPLOYMENTS_SOURCES); }
public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_SECURITY_SSH_KEYS); }
/** * {@inheritdoc} * @see Scalr_UI_Controller::hasAccess() */ public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed([Acl::RESOURCE_FARMS, Acl::RESOURCE_TEAM_FARMS, Acl::RESOURCE_OWN_FARMS], Acl::PERM_FARMS_STATISTICS); }
/** * {@inheritdoc} * @see Scalr_UI_Controller::hasAccess() */ public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_GCE_PERSISTENT_DISKS); }
/** * {@inheritdoc} * @see Scalr_UI_Controller::hasAccess() */ public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_DISCOVERY_SERVERS) && $this->request->isAllowed(Acl::RESOURCE_DISCOVERY_SERVERS, Acl::PERM_DISCOVERY_SERVERS_IMPORT); }
/** * {@inheritdoc} * @see Scalr_UI_Controller::hasAccess() */ public function hasAccess() { return parent::hasAccess() && $this->request->isFarmAllowed(null, Acl::PERM_FARMS_STATISTICS); }
public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_GENERAL_SCHEDULERTASKS); }
/** * {@inheritdoc} * @see \Scalr_UI_Controller::hasAccess() */ public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_ANALYTICS_PROJECTS_ACCOUNT); }
/** * {@inheritdoc} * @see Scalr_UI_Controller::hasAccess() */ public function hasAccess() { //TODO: //return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_OPENSTACK_SNAPSHOTS); return parent::hasAccess(); }
public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_GLOBAL_VARIABLES_ACCOUNT); }
public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_DB_BACKUPS); }
public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_IMAGES_ENVIRONMENT, Acl::PERM_IMAGES_ENVIRONMENT_IMPORT); }
public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_AWS_CLOUDWATCH); }
/** * {@inheritdoc} * @see Scalr_UI_Controller::hasAccess() */ public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_ANALYTICS_ENVIRONMENT); }
public function hasAccess() { return parent::hasAccess() && $this->user->canManageAcl(); }
public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_SERVICES_RABBITMQ); }
/** * {@inheritdoc} * @see Scalr_UI_Controller::hasAccess() */ public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_FARMS_ROLES); }
public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_DB_DATABASE_STATUS); }
public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_CLOUDSTACK_PUBLIC_IPS); }
public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_AWS_ELASTIC_IPS); }
public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(\Scalr\Acl\Acl::RESOURCE_ADMINISTRATION_GLOBAL_VARIABLES); }
/** * {@inheritdoc} * @see Scalr_UI_Controller::hasAccess() */ public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_OPENSTACK_VOLUMES); }
public function hasAccess() { return parent::hasAccess() && ($this->user->isAccountSuperAdmin() || $this->request->isAllowed(Acl::RESOURCE_ENV_CLOUDS_ENVIRONMENT)); }
public function hasAccess() { return parent::hasAccess() && $this->request->isAllowed(Acl::RESOURCE_ENVADMINISTRATION_GOVERNANCE); }
/** * {@inheritdoc} * @see Scalr_UI_Controller::hasAccess() */ public function hasAccess() { return parent::hasAccess(); }