/** * Deletes an existing AuthItem model. * If deletion is successful, the browser will be redirected to the 'index' page. * * @param string $id * @return mixed */ public function actionDelete($id) { $groupName = YiiForum::getGetValue('group'); $item = new Role(); $item->name = $id; $this->auth->remove($item); AuthItem::createCachedRoles(); return $this->redirect(['index', 'group' => $groupName]); }