用户角色新增[主编/副主编/编委]
This commit is contained in:
@@ -1957,6 +1957,19 @@ class User extends Base
|
||||
$board_res = $this->board_to_journal_obj->where('user_id', $user_info['user_id'])->where('state', 0)->find();
|
||||
if ($board_res != null) {
|
||||
$roles[] = 'board';
|
||||
|
||||
//判断用户角色 0主编1副主编2编委成员 chengxiaoling 20250827 start
|
||||
$iType = isset($board_res['type']) ? $board_res['type'] : '-1';
|
||||
if($iType == 0){
|
||||
$roles[] = 'chief_editor';
|
||||
}
|
||||
if($iType == 1){
|
||||
$roles[] = 'deputy_editor';
|
||||
}
|
||||
if($iType == 2){
|
||||
$roles[] = 'editor_board';
|
||||
}
|
||||
//判断用户角色 0主编1副主编2编委成员 chengxiaoling 20250827 end
|
||||
}
|
||||
$special_res = $this->user_to_special_obj->where('user_id', $user_info['user_id'])->where("uts_state", 0)->find();
|
||||
if ($special_res != null) {
|
||||
|
||||
Reference in New Issue
Block a user