feat: user permissions

This commit is contained in:
Timothy Jaeryang Baek committed 2024-11-16 21:31:57 -08:00
1 parent 057c957f5d
commit cf2dcf1dc3
5 files changed
+16 -221

No files matched your search

@@ -729,7 +729,7 @@
{#if message.done}
{#if !readOnly}
{#if $user.role === 'user' ? ($config?.permissions?.chat?.editing ?? true) : true}
{#if $user.role === 'user' ? ($user?.permissions?.chat?.edit ?? true) : true}
<Tooltip content={$i18n.t('Edit')} placement="bottom">
<button
class="{isLastMessage