MCPcopy
hub / github.com/dgraph-io/dgraph / GetUserPredPerms

Method GetUserPredPerms

worker/acl_cache.go:53–57  ·  view source on GitHub ↗
(userId string)

Source from the content-addressed store, hash-verified

51}
52
53func (cache *AclCache) GetUserPredPerms(userId string) map[string]int32 {
54 cache.Lock()
55 defer cache.Unlock()
56 return cache.userPredPerms[userId]
57}
58
59func (cache *AclCache) Update(ns uint64, groups []acl.Group) {
60 // In dgraph, acl rules are divided by groups, e.g.

Callers 1

authorizePredsFunction · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected