聊天室管理权限统一为职务权限

This commit is contained in:
2026-04-26 20:55:11 +08:00
parent b07f4e971a
commit 0402097b59
21 changed files with 590 additions and 395 deletions
+15 -5
View File
@@ -64,9 +64,14 @@ class PositionPermissionRegistry
public const USER_MUTE = 'room.user_mute';
/**
* 用户冻结权限。
* 用户封号权限。
*/
public const USER_FREEZE = 'room.user_freeze';
public const USER_BAN = 'room.user_ban';
/**
* 用户封IP权限。
*/
public const USER_BANIP = 'room.user_banip';
/**
* 返回全部权限定义。
@@ -126,10 +131,15 @@ class PositionPermissionRegistry
'label' => '禁言用户',
'description' => '允许在用户名片内对低于自身职务的用户执行禁言。',
],
self::USER_FREEZE => [
self::USER_BAN => [
'group' => '用户管理',
'label' => '冻结用户',
'description' => '允许在用户名片内冻结低于自身职务的用户账号。',
'label' => '封号用户',
'description' => '允许在用户名片内封禁低于自身职务的用户账号并强制下线。',
],
self::USER_BANIP => [
'group' => '用户管理',
'label' => '封IP',
'description' => '允许在用户名片内封禁低于自身职务的用户 IP,并查看管理员网络信息。',
],
];
}