- Gruppi si chiamano ora "Organizzazioni".

- Categorie dei Gruppi aggiornate.
- Email ora compare sul profilo se non hai telegram e anche sugli annunci.
This commit is contained in:
Surya Paolo
2025-01-28 23:32:37 +01:00
parent 17bcc1644d
commit d65d4e3ffa
59 changed files with 555 additions and 328 deletions

View File

@@ -6972,6 +6972,17 @@ export const tools = {
},
iCanShowAnnunci(grp: IMyGroup) {
if (grp && grp.visibility!.includes(shared_consts.Visibility_Group.HIDDEN)) {
// Only if I am part of this group
return this.iAmPartOfThisGroup(grp)
}
return true
},
iAmTheCreatorOfTheGroup(groupname: string) {
const userStore = useUserStore()
@@ -7012,10 +7023,10 @@ export const tools = {
},
isUserAdminGroup(groupname: string, username: string) {
isUserAdminGroup(groupname: string, username: string, real?: boolean) {
const userStore = useUserStore()
if (userStore.my.username === username && userStore.isAdmin) {
if (!real && (userStore.my.username === username && userStore.isAdmin)) {
return true
}
let risultato = false
@@ -7081,10 +7092,10 @@ export const tools = {
},
isUserAdminCircuit(name: string, username: string) {
isUserAdminCircuit(name: string, username: string, real?: boolean) {
const userStore = useUserStore()
if (userStore.my.username === username && userStore.isAdmin) {
if (!real && (userStore.my.username === username && userStore.isAdmin)) {
return true
}
@@ -7498,6 +7509,9 @@ export const tools = {
// return true
if (shared_consts.TABLES_WITH_ADMINS.includes(tablesel)) {
if (userStore.isAdmin)
return true
// is Admin ?
if (rec.admins) {
const trovato = rec.admins.find((myuser: any) => myuser.username === userStore.my.username)
@@ -7505,6 +7519,8 @@ export const tools = {
return !!trovato
}
}
}
if (rec.hasOwnProperty('userId')) {