Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aiprodcoder/MIXAPI
/ IsValidateRole
Function
IsValidateRole
common/constants.go:139–141 ·
view source on GitHub ↗
(role int)
Source
from the content-addressed store, hash-verified
137
)
138
139
func
IsValidateRole(role int) bool {
140
return
role == RoleGuestUser || role == RoleCommonUser || role == RoleAdminUser || role == RoleRootUser
141
}
142
143
var
(
144
FileUploadPermission = RoleGuestUser
Callers
1
validUserInfo
Function · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected