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

Method HasReadPermission

types/account.go:152–157  ·  view source on GitHub ↗

HasReadPermission returns true if user owns read permission.

()

Source from the content-addressed store, hash-verified

150
151// HasReadPermission returns true if user owns read permission.
152func (up *UserPermission) HasReadPermission() bool {
153 if up == nil {
154 return false
155 }
156 return up.Role&Read != 0
157}
158
159// HasWritePermission returns true if user owns write permission.
160func (up *UserPermission) HasWritePermission() bool {

Callers 3

TestUserPermissionFunction · 0.80
TestFullProcessFunction · 0.80
checkPermissionMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestUserPermissionFunction · 0.64
TestFullProcessFunction · 0.64