mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-20 14:00:04 +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:
parent
5b0cbf3788
commit
31b5e9177f
26 changed files with 614 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue