Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
d7d4d444
Commit
d7d4d444
authored
Jan 02, 2024
by
Timothy J. Baek
Browse files
feat: disable users from accesing models setting
parent
5133ec75
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
25 deletions
+27
-25
src/lib/components/chat/SettingsModal.svelte
src/lib/components/chat/SettingsModal.svelte
+27
-25
No files found.
src/lib/components/chat/SettingsModal.svelte
View file @
d7d4d444
...
@@ -761,6 +761,7 @@
...
@@ -761,6 +761,7 @@
<div class=" self-center">Advanced</div>
<div class=" self-center">Advanced</div>
</button>
</button>
{#if $user?.role === 'admin'}
<button
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
'models'
'models'
...
@@ -786,6 +787,7 @@
...
@@ -786,6 +787,7 @@
</div>
</div>
<div class=" self-center">Models</div>
<div class=" self-center">Models</div>
</button>
</button>
{/if}
<button
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment