public function editeAction() { $this->setViewChange('form'); if ($this->getRequest()->isPost()) { Model_Usergroups::editeUserGroup($this->getRequest()->getQuery('id'), $this->getRequest()->getParams()); $this->session->set('successfu_edite', true); $this->redirect($this->getRequest()->getBaseUrl() . $this->getRequest()->getModule() . '/usergroups/'); } $this->getForm(); }
public function editeAction() { if (!WM_Users::allow('edit', $this->getRequest()->getController())) { $this->session->set('error_permision', $this->translate('You do not have permission to this action')); $this->redirect($this->getRequest()->getBaseUrl() . $this->getRequest()->getModule() . '/usergroups/'); } $this->setViewChange('form'); if ($this->getRequest()->isPost()) { Model_Usergroups::editeUserGroup($this->getRequest()->getQuery('id'), $this->getRequest()->getParams()); $this->session->set('successfu_edite', true); $this->redirect($this->getRequest()->getBaseUrl() . $this->getRequest()->getModule() . '/usergroups/'); } $this->getForm(); }