mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-24 21:16:30 +02:00
sync with main
This commit is contained in:
parent
dcc372105b
commit
8968515869
@ -32,7 +32,8 @@ type Permission struct {
|
|||||||
units []*repo_model.RepoUnit
|
units []*repo_model.RepoUnit
|
||||||
unitsMode map[unit.Type]perm_model.AccessMode
|
unitsMode map[unit.Type]perm_model.AccessMode
|
||||||
|
|
||||||
everyoneAccessMode map[unit.Type]perm_model.AccessMode
|
everyoneAccessMode map[unit.Type]perm_model.AccessMode // the unit's minimal access mode for every signed-in user
|
||||||
|
anonymousAccessMode map[unit.Type]perm_model.AccessMode // the unit's minimal access mode for anonymous (non-signed-in) user
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsOwner returns true if current user is the owner of repository.
|
// IsOwner returns true if current user is the owner of repository.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user