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

Method HasSuperPermission

types/account.go:168–173  ·  view source on GitHub ↗

HasSuperPermission returns true if user owns super permission.

()

Source from the content-addressed store, hash-verified

166
167// HasSuperPermission returns true if user owns super permission.
168func (up *UserPermission) HasSuperPermission() bool {
169 if up == nil {
170 return false
171 }
172 return up.Role&Super != 0
173}
174
175// IsValid returns whether the permission object is valid or not.
176func (up *UserPermission) IsValid() bool {

Callers 4

updatePermissionMethod · 0.80
updateKeysMethod · 0.80
TestUserPermissionFunction · 0.80
databaseListFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestUserPermissionFunction · 0.64