Conto Comunitario...
This commit is contained in:
@@ -17,6 +17,14 @@ export const costanti = {
|
||||
CERCO: 2,
|
||||
},
|
||||
|
||||
ENABLE_FRIENDS: false,
|
||||
ENABLE_CONTI_COMUNITARI: true,
|
||||
|
||||
AccountType: {
|
||||
USER: 0,
|
||||
COMMUNITY_ACCOUNT: 1,
|
||||
},
|
||||
|
||||
Lang: {
|
||||
IT: 1,
|
||||
EN: 2,
|
||||
|
||||
@@ -6543,6 +6543,31 @@ export const tools = {
|
||||
|
||||
},
|
||||
|
||||
getGroupsWhereIAmTheAdminOfTheCircuit(name: string, username: string) {
|
||||
const userStore = useUserStore()
|
||||
|
||||
let arr: any[] = []
|
||||
|
||||
let risultato = false
|
||||
|
||||
if (userStore.my.profile.manage_mycircuits) {
|
||||
const ris = userStore.my.profile.manage_mycircuits.find((circuit: ICircuit) => {
|
||||
if (circuit.name === name) {
|
||||
return true
|
||||
}
|
||||
})
|
||||
// console.log('ris', ris)
|
||||
if (ris && ris.admins) {
|
||||
const isadmin = ris.admins.find((user: IFriends) => user.username === username)
|
||||
risultato = !!isadmin
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return arr
|
||||
|
||||
},
|
||||
|
||||
setCmd($q: any, cmd: number, username: string, value: any, dest: string) {
|
||||
console.log('setcmd', cmd)
|
||||
if (cmd === shared_consts.GROUPSCMD.REMOVE_FROM_MYGROUP) {
|
||||
|
||||
Reference in New Issue
Block a user