Skip to content

Commit c18bcb4

Browse files
sync with main
1 parent fed1bab commit c18bcb4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/perm/access/repo_permission.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ type Permission struct {
3030
units []*repo_model.RepoUnit
3131
unitsMode map[unit.Type]perm_model.AccessMode
3232

33-
everyoneAccessMode map[unit.Type]perm_model.AccessMode
33+
everyoneAccessMode map[unit.Type]perm_model.AccessMode // the unit's minimal access mode for every signed-in user
34+
anonymousAccessMode map[unit.Type]perm_model.AccessMode // the unit's minimal access mode for anonymous (non-signed-in) user
3435
}
3536

3637
// IsOwner returns true if current user is the owner of repository.

routers/web/web.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"strings"
99

1010
auth_model "code.gitea.io/gitea/models/auth"
11-
"code.gitea.io/gitea/models/db"
1211
"code.gitea.io/gitea/models/perm"
1312
"code.gitea.io/gitea/models/unit"
1413
"code.gitea.io/gitea/modules/git"

0 commit comments

Comments
 (0)