public function getType()
{
return $this->type;
}
/** * Restricts access to controller's actions * * @return boolean Returns true if user has access. */ public function hasAccess() { if ($this->user) { // check admin, non-admin if ($this->user->getType() != Scalr_Account_User::TYPE_SCALR_ADMIN) { // check controller in permissions return true; } else { return false; } } else { return false; } }