fix Conti Collettivi + messaggi
This commit is contained in:
@@ -254,8 +254,15 @@ export const useUserStore = defineStore('UserStore', {
|
||||
}
|
||||
},
|
||||
|
||||
GroupsListWhereIAmAdmin(circuitname: string): any {
|
||||
console.log('GL', circuitname)
|
||||
GroupsListWhereIAmAdmin(): any {
|
||||
try {
|
||||
return this.my.profile.manage_mygroups
|
||||
} catch (e) {
|
||||
return []
|
||||
}
|
||||
},
|
||||
|
||||
GroupsListWhereIAmAdminInTheCircuit(circuitname: string): any {
|
||||
try {
|
||||
const arr: any = this.my.profile.manage_mygroups.filter((group: IMyGroup) => (group.mycircuits!.findIndex((circ: IMyCircuit) => circ.circuitname === circuitname) >= 0))
|
||||
console.log('arr', arr)
|
||||
@@ -265,6 +272,15 @@ export const useUserStore = defineStore('UserStore', {
|
||||
}
|
||||
},
|
||||
|
||||
hoContiComunitariDaAmministrare(): boolean {
|
||||
try {
|
||||
const arr: any = this.my.profile.manage_mygroups.filter((group: IMyGroup) => (group.mycircuits!.length > 0))
|
||||
return !!arr
|
||||
} catch (e) {
|
||||
return false
|
||||
}
|
||||
},
|
||||
|
||||
hoContiCollettiviDaAmministrare(): boolean {
|
||||
const arr = this.my.profile.manage_mygroups.find((group: IMyGroup) => group.account)
|
||||
return arr ? true : false
|
||||
|
||||
Reference in New Issue
Block a user