fix: persist user documents immediately after FilePond upload
FilePond success only stored files in the temp bucket, so the documents table stayed empty unless a second commit click was used.
This commit is contained in:
@@ -41,6 +41,7 @@ export const usePermissionStore = defineStore('permission', () => {
|
||||
|
||||
function hasPermission(perm) {
|
||||
if (!perm) return true;
|
||||
if (String(roleName.value).toLowerCase() === 'superadmin') return true;
|
||||
if (permissions.value.includes('*') || permissions.value.includes('admin:all')) return true;
|
||||
return permissions.value.includes(perm);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user