- Non funziona l'ammetti il nuovo registrato, sulla App.
- All'interno di una Organizzazione, mostrare se non si è ancora entrati in un Circuito, mettere bottone per Entrare.
This commit is contained in:
@@ -2,7 +2,8 @@ import { defineStore } from 'pinia'
|
||||
|
||||
import type {
|
||||
IAccount,
|
||||
ICircuit, ICircuitState, IGroupShort, IMyCircuit, IMyGroup, IUserFields
|
||||
ICircuit, ICircuitState, IGroupShort, IMyCircuit, IMyGroup, IUserFields,
|
||||
IUserProfile
|
||||
} from '@src/model';
|
||||
import {
|
||||
IGlobalState
|
||||
@@ -126,6 +127,16 @@ export const useCircuitStore = defineStore('CircuitStore', {
|
||||
|
||||
},
|
||||
|
||||
getFidoConcessoByUsername(myuser: IUserFields, circuitId: string, username: string): number|string {
|
||||
const userStore = useUserStore()
|
||||
if (myuser && myuser.profile.useraccounts) {
|
||||
const account = myuser.profile.useraccounts.find((rec: IAccount) => rec.username === username || (rec.groupname === username && username !== '') && rec.circuitId === circuitId)
|
||||
return account ? account.fidoConcesso : 0
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
},
|
||||
|
||||
SonoDentroAdAlmeno1CircuitoConFido(): boolean {
|
||||
const userStore = useUserStore()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user