/** * Search roles of user * @param integer $id * @param string $target * @param string $term * @return string */ public function actionSearch($id, $target, $term = '') { $return = parent::actionSearch($id, $target, $term); //非超超超级管理员,不可以分配Super权限 if (!User::checkIsSuperAdmin() && $return && isset($return['Roles']) && isset($return['Roles']['super'])) { unset($return['Roles']['super']); } return $return; }
public function actionIndex() { return parent::actionIndex(); }