- Sistemato i Referenti (e non Editori), quando crei un nuovo Catalogo ti imposta la proprietà a te, ma chiunque Collaboratore potrebbe cmq modificartelo.

This commit is contained in:
Surya Paolo
2025-07-01 12:59:39 +02:00
parent 4b65400d50
commit 9e95fe622b
29 changed files with 138 additions and 84 deletions

View File

@@ -564,6 +564,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
else if (table === 'friends') return userStore.my.profile.friends;
else if (table === 'lista_editori') {
ris = userStore.listaEditori;
} else if (table === 'lista_referenti') {
ris = userStore.listaReferenti;
} else if (table === 'friendsandme')
return [{ username: userStore.my.username }, ...userStore.my.profile.friends];
// else if (table === 'mygroups')
@@ -1251,6 +1253,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
this.clearDataAfterLoginOnlyIfActiveConnection();
await userStore.loadListaEditori();
await userStore.loadListaReferenti();
await globalroutines('readall', 'config', null);
@@ -2510,6 +2513,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
shared_consts.Permissions.Teacher,
shared_consts.Permissions.Facilitatore,
shared_consts.Permissions.Editor,
shared_consts.Permissions.Commerciale,
shared_consts.Permissions.Zoomeri,
shared_consts.Permissions.Department,
shared_consts.Permissions.Grafico,