fixed display of host status on member list

This commit is contained in:
2025-10-22 21:04:30 -06:00
parent 4f363c8fc8
commit beddade58f
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -341,6 +341,7 @@ func MemberList(ctxt ui.AmContext) (string, any, error) {
}
ctxt.SetLeftMenu("community")
ctxt.VarMap().Set("comm", comm)
ctxt.VarMap().Set("hostUid", *comm.HostUid)
showHidden := ctxt.TestPermission("Community.ShowHiddenMembers")
ctxt.VarMap().Set("canExport", showHidden)
ctxt.VarMap().Set("field", "name")
@@ -392,6 +393,7 @@ func MemberSearch(ctxt ui.AmContext) (string, any, error) {
term := ctxt.FormField("term")
ctxt.SetLeftMenu("community")
ctxt.VarMap().Set("comm", comm)
ctxt.VarMap().Set("hostUid", comm.HostUid)
showHidden := ctxt.TestPermission("Community.ShowHiddenMembers")
ctxt.VarMap().Set("canExport", showHidden)
ctxt.VarMap().Set("field", field)