将用户管理操作接入职务权限体系
This commit is contained in:
@@ -43,6 +43,26 @@ class PositionPermissionRegistry
|
||||
*/
|
||||
public const ROOM_FULLSCREEN_EFFECT = 'room.fullscreen_effect';
|
||||
|
||||
/**
|
||||
* 用户警告权限。
|
||||
*/
|
||||
public const USER_WARN = 'room.user_warn';
|
||||
|
||||
/**
|
||||
* 用户踢出权限。
|
||||
*/
|
||||
public const USER_KICK = 'room.user_kick';
|
||||
|
||||
/**
|
||||
* 用户禁言权限。
|
||||
*/
|
||||
public const USER_MUTE = 'room.user_mute';
|
||||
|
||||
/**
|
||||
* 用户冻结权限。
|
||||
*/
|
||||
public const USER_FREEZE = 'room.user_freeze';
|
||||
|
||||
/**
|
||||
* 返回全部权限定义。
|
||||
*
|
||||
@@ -81,6 +101,26 @@ class PositionPermissionRegistry
|
||||
'label' => '全屏特效',
|
||||
'description' => '允许触发聊天室内全部全屏动画特效。',
|
||||
],
|
||||
self::USER_WARN => [
|
||||
'group' => '用户管理',
|
||||
'label' => '警告用户',
|
||||
'description' => '允许在用户名片内对低于自身职务的用户发送警告。',
|
||||
],
|
||||
self::USER_KICK => [
|
||||
'group' => '用户管理',
|
||||
'label' => '踢出用户',
|
||||
'description' => '允许在用户名片内将低于自身职务的用户踢出当前聊天室。',
|
||||
],
|
||||
self::USER_MUTE => [
|
||||
'group' => '用户管理',
|
||||
'label' => '禁言用户',
|
||||
'description' => '允许在用户名片内对低于自身职务的用户执行禁言。',
|
||||
],
|
||||
self::USER_FREEZE => [
|
||||
'group' => '用户管理',
|
||||
'label' => '冻结用户',
|
||||
'description' => '允许在用户名片内冻结低于自身职务的用户账号。',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user