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

Function IsSuperAdmin

x/x.go:1192–1200  ·  view source on GitHub ↗
(groups []string)

Source from the content-addressed store, hash-verified

1190}
1191
1192func IsSuperAdmin(groups []string) bool {
1193 for _, group := range groups {
1194 if group == SuperAdminId {
1195 return true
1196 }
1197 }
1198
1199 return false
1200}
1201
1202// RunVlogGC runs value log gc on store. It runs GC unconditionally after every 1 minute.
1203func RunVlogGC(store *badger.DB, closer *z.Closer) {

Callers 5

authorizeAlterFunction · 0.92
authorizeMutationFunction · 0.92
authorizeQueryFunction · 0.92
authorizeSchemaQueryFunction · 0.92
AuthorizeGuardiansFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected