Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
117
def
is_admin(load_user):
118
user = User.query.filter_by(email=load_user).first()
119
return
user.has_role(
"Administrator"
)
120
121
122
def
detect_browser(request):
Callers
1
index
Function · 0.85
Calls
1
first
Method · 0.65
Tested by
no test coverage detected