public function getPermission($name);
public function actionAjaxChildRemove($name) { $role = $this->findRole($name); $namePermission = Yii::$app->request->post('permission'); $permission = $this->auth->getPermission($namePermission); return $this->auth->removeChild($role, $permission) ? 'success' : 'fail'; }