refac: temporary enforced behaviour

This commit is contained in:
Timothy Jaeryang Baek
2025-06-30 13:16:46 +04:00
parent c75d0bd20b
commit eac2f36f4f
3 changed files with 4 additions and 4 deletions

View File

@@ -708,7 +708,7 @@
//////////////////////////
const initNewChat = async () => {
if ($user?.permissions?.chat?.temporary_enforced) {
if ($user?.role !== 'admin' && $user?.permissions?.chat?.temporary_enforced) {
await temporaryChatEnabled.set(true);
}