mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
fix: default permissions not being loaded
This commit is contained in:
parent
73f32a88e3
commit
887772db22
1 changed files with 1 additions and 6 deletions
|
|
@ -57,12 +57,6 @@
|
|||
|
||||
const setGroups = async () => {
|
||||
const allGroups = await getGroups(localStorage.token);
|
||||
const userGroup = allGroups.find((g) => g.name.toLowerCase() === 'user');
|
||||
|
||||
if (userGroup) {
|
||||
defaultPermissions = userGroup.permissions;
|
||||
}
|
||||
|
||||
groups = allGroups.filter((g) => g.name.toLowerCase() !== 'user');
|
||||
};
|
||||
|
||||
|
|
@ -110,6 +104,7 @@
|
|||
total = res.total;
|
||||
}
|
||||
|
||||
defaultPermissions = await getUserDefaultPermissions(localStorage.token);
|
||||
await setGroups();
|
||||
loaded = true;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue