perf: 完善LDAP

This commit is contained in:
kuaifan
2023-02-09 09:56:45 +08:00
parent b60b572494
commit 63bb145224
10 changed files with 416 additions and 82 deletions

View File

@@ -306,7 +306,7 @@ class WebSocketDialog extends AbstractModel
case 'all':
throw new ApiException('当前会话全员禁言');
case 'user':
if (!User::find($userid)?->isAdmin()) {
if (!User::find($userid)?->checkAdmin()) {
throw new ApiException('当前会话禁言');
}
}