We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1195d66 commit 4593393Copy full SHA for 4593393
models/organization/team_list.go
@@ -29,8 +29,8 @@ func (t TeamList) LoadUnits(ctx context.Context) error {
29
func (t TeamList) UnitMaxAccess(tp unit.Type) perm.AccessMode {
30
maxAccess := perm.AccessModeNone
31
for _, team := range t {
32
- if team.IsOwnerTeam() {
33
- return perm.AccessModeOwner
+ if team.AccessMode >= perm.AccessModeAdmin {
+ return team.AccessMode
34
}
35
for _, teamUnit := range team.Units {
36
if teamUnit.Type != tp {
0 commit comments