聊天室管理权限统一为职务权限
This commit is contained in:
@@ -17,13 +17,6 @@
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<meta http-equiv="Delegate-CH" content="Sec-CH-UA https://s.magsrv.com; Sec-CH-UA-Mobile https://s.magsrv.com; Sec-CH-UA-Arch https://s.magsrv.com; Sec-CH-UA-Model https://s.magsrv.com; Sec-CH-UA-Platform https://s.magsrv.com; Sec-CH-UA-Platform-Version https://s.magsrv.com; Sec-CH-UA-Bitness https://s.magsrv.com; Sec-CH-UA-Full-Version-List https://s.magsrv.com; Sec-CH-UA-Full-Version https://s.magsrv.com;">
|
||||
@php
|
||||
// 从 sysparam 读取权限等级配置
|
||||
$levelWarn = (int) \App\Models\Sysparam::getValue('level_warn', '5');
|
||||
$levelKick = (int) \App\Models\Sysparam::getValue('level_kick', '10');
|
||||
$levelMute = (int) \App\Models\Sysparam::getValue('level_mute', '8');
|
||||
$levelBan = (int) \App\Models\Sysparam::getValue('level_ban', '12');
|
||||
$levelBanip = (int) \App\Models\Sysparam::getValue('level_banip', '14');
|
||||
$levelFreeze = (int) \App\Models\Sysparam::getValue('level_freeze', '14');
|
||||
$superLevel = (int) \App\Models\Sysparam::getValue('superlevel', '100');
|
||||
$myLevel = Auth::user()->user_level;
|
||||
$positionPermissions = array_keys(array_filter($roomPermissionMap ?? []));
|
||||
@@ -64,10 +57,6 @@
|
||||
'userSex' => match ((int) $user->sex) {1 => '男', 2 => '女', default => ''},
|
||||
'userLevel' => $user->user_level,
|
||||
'superLevel' => $superLevel,
|
||||
'levelKick' => $levelKick,
|
||||
'levelMute' => $levelMute,
|
||||
'levelBan' => $levelBan,
|
||||
'levelBanip' => $levelBanip,
|
||||
'sendUrl' => route('chat.send', $room->id),
|
||||
'leaveUrl' => route('chat.leave', $room->id),
|
||||
'expiredLeaveUrl' => \Illuminate\Support\Facades\URL::temporarySignedRoute('chat.leave.expired', now()->addHours(12), ['id' => $room->id, 'user' => $user->id]),
|
||||
|
||||
Reference in New Issue
Block a user