MCPcopy 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
139func IsValidateRole(role int) bool {
140 return role == RoleGuestUser || role == RoleCommonUser || role == RoleAdminUser || role == RoleRootUser
141}
142
143var (
144 FileUploadPermission = RoleGuestUser

Callers 1

validUserInfoFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected