MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / CanAccessWithoutPassword

Function CanAccessWithoutPassword

internal/model/user.go:111–113  ·  view source on GitHub ↗
(permission int32)

Source from the content-addressed store, hash-verified

109}
110
111func CanAccessWithoutPassword(permission int32) bool {
112 return (permission>>1)&1 == 1
113}
114
115func (u *User) CanAccessWithoutPassword() bool {
116 return CanAccessWithoutPassword(u.Permission)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected