Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenListTeam/OpenList
/ IsAdmin
Method
IsAdmin
internal/model/user.go:78–80 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
76
}
77
78
func
(u *User) IsAdmin() bool {
79
return
u.Role == ADMIN
80
}
81
82
func
(u *User) ValidateRawPassword(password string) error {
83
return
u.ValidatePwdStaticHash(StaticHash(password))
Callers
14
CreateUser
Function · 0.95
UpdateUser
Function · 0.95
DeleteUserById
Function · 0.80
UpdateUser
Function · 0.80
DelUserCache
Function · 0.80
AuthAdmin
Function · 0.80
GetSharing
Function · 0.80
ListSharings
Function · 0.80
UpdateSharing
Function · 0.80
CreateSharing
Function · 0.80
DeleteSharing
Function · 0.80
SetEnableSharing
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected