mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-22 14:08:01 +02:00
fix collborators lack of units on orgnization repositories (#1968)
* fix collborators lack of units on orgnization repositories * also change log level to debug
This commit is contained in:

committed by
Kim "BKC" Carlbäcker

parent
5b0cbf3788
commit
31b5e9177f
@ -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
|
||||
|
Reference in New Issue
Block a user