fix: 全员群禁言仅管理员可发言无效的问题
This commit is contained in:
@@ -389,7 +389,7 @@ class WebSocketDialog extends AbstractModel
|
||||
case 'all':
|
||||
throw new ApiException('当前会话全员禁言');
|
||||
case 'user':
|
||||
if (!User::find($userid)?->checkAdmin()) {
|
||||
if (!User::find($userid)?->isAdmin()) {
|
||||
throw new ApiException('当前会话禁言');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user