We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1698005 commit 739291dCopy full SHA for 739291d
models/repo_permission.go
@@ -60,9 +60,7 @@ func (p *Permission) UnitAccessMode(unitType UnitType) AccessMode {
60
func (p *Permission) CanAnonymousAccess(unitType UnitType) bool {
61
for _, u := range p.Units {
62
if u.Type == unitType {
63
- if u.AllowAnonymous {
64
- return true
65
- }
+ return u.AllowAnonymous
66
}
67
68
return false
0 commit comments