diff options
Diffstat (limited to 'models/org_team.go')
-rw-r--r-- | models/org_team.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/org_team.go b/models/org_team.go index 07a90e08f1..b0796248a5 100644 --- a/models/org_team.go +++ b/models/org_team.go @@ -155,7 +155,7 @@ func (t *Team) removeRepository(e Engine, repo *Repository, recalculate bool) (e return fmt.Errorf("get team members: %v", err) } for _, u := range t.Members { - has, err := hasAccess(e, u, repo, ACCESS_MODE_READ) + has, err := hasAccess(e, u, repo, AccessModeRead) if err != nil { return err } else if has { |