MCPcopy Create free account
hub / github.com/documentdb/documentdb / IsCallingUserExternal

Function IsCallingUserExternal

pg_documentdb/src/commands/users.c:1358–1363  ·  view source on GitHub ↗

* Verify that the calling user is native */

Source from the content-addressed store, hash-verified

1356 * Verify that the calling user is native
1357 */
1358static bool
1359IsCallingUserExternal()
1360{
1361 const char *currentUser = GetUserNameFromId(GetUserId(), true);
1362 return IsUserExternal(currentUser);
1363}
1364
1365
1366/*

Callers 3

CreateNativeUserFunction · 0.85
DropNativeUserFunction · 0.85
UpdateNativeUserFunction · 0.85

Calls 1

IsUserExternalFunction · 0.85

Tested by

no test coverage detected