summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go
index 8fda3c674d..47d694cdac 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -363,6 +363,13 @@ func (repo *Repository) getUnitsByUserID(e Engine, userID int64, isAdmin bool) (
return nil
}
+ // Collaborators will not be limited
+ if isCollaborator, err := repo.isCollaborator(e, userID); err != nil {
+ return err
+ } else if isCollaborator {
+ return nil
+ }
+
teams, err := getUserTeams(e, repo.OwnerID, userID)
if err != nil {
return err