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

Function UserPermissionFromRole

types/account.go:145–149  ·  view source on GitHub ↗

UserPermissionFromRole construct a new user permission instance from primitive user permission role enum.

(role UserPermissionRole)

Source from the content-addressed store, hash-verified

143
144// UserPermissionFromRole construct a new user permission instance from primitive user permission role enum.
145func UserPermissionFromRole(role UserPermissionRole) *UserPermission {
146 return &UserPermission{
147 Role: role,
148 }
149}
150
151// HasReadPermission returns true if user owns read permission.
152func (up *UserPermission) HasReadPermission() bool {

Callers 8

createSQLChainMethod · 0.92
TestMetaStateFunction · 0.92
startTestServiceFunction · 0.92
TestFullProcessFunction · 0.92
helper_test.goFile · 0.92
TestDBMSFunction · 0.92
TestUserPermissionFunction · 0.85

Calls

no outgoing calls

Tested by 5

TestMetaStateFunction · 0.74
startTestServiceFunction · 0.74
TestFullProcessFunction · 0.74
TestDBMSFunction · 0.74
TestUserPermissionFunction · 0.68