feat: user permissions

This commit is contained in:
Timothy Jaeryang Baek
2024-11-16 21:31:57 -08:00
parent 057c957f5d
commit cf2dcf1dc3
5 changed files with 16 additions and 221 deletions
@@ -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