add templates for pages to add and manage teams with access to a group

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2026-04-02 20:22:47 -04:00
parent 902cf739b8
commit 8d82d52c30
6 changed files with 263 additions and 5 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package group
import (
"code.gitea.io/gitea/models/perm"
"context"
"slices"
@@ -102,7 +103,7 @@ func GetTopLevelGroupItemList(ctx context.Context, orgID int64, doer *user_model
ActorID: doer.ID,
OwnerID: orgID,
}, group_model.
AccessibleGroupCondition(doer, unit.TypeInvalid))
AccessibleGroupCondition(doer, unit.TypeInvalid, perm.AccessModeRead))
if err != nil {
return
}