mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-07 08:27:05 +00:00
fix(ui): enforce allow_users permission in share chat modal (#25915)
This commit is contained in:
parent
7d1f941580
commit
3571db34e2
1 changed files with 2 additions and 0 deletions
|
|
@ -159,6 +159,8 @@
|
|||
bind:accessGrants
|
||||
accessRoles={['read']}
|
||||
sharePublic={$user?.permissions?.sharing?.public_chats || $user?.role === 'admin'}
|
||||
shareUsers={($user?.permissions?.access_grants?.allow_users ?? true) ||
|
||||
$user?.role === 'admin'}
|
||||
onChange={saveAccessGrants}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue