Group Page : visibility, some info, members views.
This commit is contained in:
@@ -5155,6 +5155,22 @@ export const tools = {
|
||||
|
||||
},
|
||||
|
||||
iAmPartOfThisGroup(grp: IMyGroup) {
|
||||
const userStore = useUserStore()
|
||||
return userStore.my.profile.mygroups.findIndex((rec: IMyGroup) => rec.groupname === grp.groupname) >= 0
|
||||
},
|
||||
|
||||
iCanShowGroupsMember(grp: IMyGroup) {
|
||||
|
||||
if (grp && grp.visibility!.includes(shared_consts.Visibility_Group.PRIVATE)) {
|
||||
// Only if I am part of this group
|
||||
return this.iAmPartOfThisGroup(grp)
|
||||
}
|
||||
|
||||
return true
|
||||
|
||||
},
|
||||
|
||||
iAmTheCreatorOfTheGroup(groupname: string) {
|
||||
const userStore = useUserStore()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user