public function hasAccessPermissions($user, $environment = null, $modify = null)
{
switch ($this->getScope()) {
case static::SCOPE_ACCOUNT:
return $this->accountId == $user->accountId;
case static::SCOPE_SCALR:
return $user->type == User::TYPE_SCALR_ADMIN || !$modify;
default:
return false;
}
}