mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-05 08:10:30 +00:00
This change introduces a visual warning in the group settings page. The warning appears when an admin attempts to disable a permission for a group that is already enabled in the default 'user' group. This is necessary because permissions are additive, and disabling a permission in a specific group will not revoke it if it's enabled in the default group. To achieve this, the following changes were made: - A new `PermissionSwitch.svelte` component was created to encapsulate the permission switch and its warning logic, avoiding redundant code. - The `Groups.svelte` component was updated to correctly fetch the default user group's permissions. - The `Permissions.svelte` component was refactored to use the new `PermissionSwitch.svelte` component, making the code cleaner and more maintainable. |
||
|---|---|---|
| .. | ||
| apis | ||
| components | ||
| i18n | ||
| pyodide | ||
| stores | ||
| types | ||
| utils | ||
| workers | ||
| constants.ts | ||
| dayjs.js | ||
| emoji-groups.json | ||
| emoji-shortcodes.json | ||
| index.ts | ||