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

Method IsGuest

internal/model/user.go:74–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72}
73
74func (u *User) IsGuest() bool {
75 return u.Role == GUEST
76}
77
78func (u *User) IsAdmin() bool {
79 return u.Role == ADMIN

Callers 15

CreateUserFunction · 0.95
DeleteUserByIdFunction · 0.80
UpdateUserFunction · 0.80
DelUserCacheFunction · 0.80
WebDAVAuthFunction · 0.80
AuthNotGuestFunction · 0.80
callFSLinkMethod · 0.80
callFSGetMethod · 0.80
callFSListMethod · 0.80
FsArchiveMetaSplitFunction · 0.80
FsArchiveListSplitFunction · 0.80
AddMyPublicKeyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected