예제 #1
0
 /**
  * 删除一个用户分配
  */
 public function actionDeleteOneUserAssign()
 {
     try {
         $userId = Yii::$app->request->post(UserAssignModel::COL_USER_ID);
         UserAssignModel::checkUserId($userId);
         $result = UserAssignModel::deleteAllByUserId($userId);
         return Utils::handlerForResult($result);
     } catch (JdbRbacException $e) {
         return Utils::handlerForException($e);
     }
 }