MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / IsValid

Method IsValid

types/account.go:176–178  ·  view source on GitHub ↗

IsValid returns whether the permission object is valid or not.

()

Source from the content-addressed store, hash-verified

174
175// IsValid returns whether the permission object is valid or not.
176func (up *UserPermission) IsValid() bool {
177 return up != nil && (up.Role >= Void && up.Role < Invalid)
178}
179
180// HasDisallowedQueryPatterns returns whether the queries are permitted.
181func (up *UserPermission) HasDisallowedQueryPatterns(queries []Query) (query string, status bool) {

Callers 3

runGrantFunction · 0.95
TestUserPermissionFunction · 0.80
CheckAndBindParamsFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestUserPermissionFunction · 0.64