MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / is_admin

Function is_admin

web/pgadmin/about/__init__.py:117–119  ·  view source on GitHub ↗
(load_user)

Source from the content-addressed store, hash-verified

115
116
117def is_admin(load_user):
118 user = User.query.filter_by(email=load_user).first()
119 return user.has_role("Administrator")
120
121
122def detect_browser(request):

Callers 1

indexFunction · 0.85

Calls 1

firstMethod · 0.65

Tested by

no test coverage detected