Conto Comunitario...
This commit is contained in:
@@ -244,20 +244,8 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return false
|
||||
},
|
||||
|
||||
GroupsListWhereIAmAdmin(username: string): string[] {
|
||||
let myarr: any[] = []
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
if (this.my.profile && globalStore.mygroups) {
|
||||
myarr = globalStore.mygroups.filter((mygroup: IMyGroup) => {
|
||||
if (mygroup.admins && mygroup.admins.findIndex((useradmin: IUserAdmins) => useradmin.username === username) >= 0) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
})
|
||||
}
|
||||
|
||||
return myarr
|
||||
GroupsListWhereIAmAdmin(): IMyGroup[] {
|
||||
return this.my.profile.manage_mygroups
|
||||
},
|
||||
|
||||
IsAskedFriendByUsername(username: string): boolean {
|
||||
|
||||
Reference in New Issue
Block a user