MCPcopy Index your code
hub / github.com/bugy/script-server / has_admin_rights

Function has_admin_rights

src/web/server.py:67–69  ·  view source on GitHub ↗
(request_handler)

Source from the content-addressed store, hash-verified

65
66
67def has_admin_rights(request_handler):
68 user_id = identify_user(request_handler)
69 return request_handler.application.authorizer.is_admin(user_id)
70
71
72class ProxiedRedirectHandler(tornado.web.RedirectHandler):

Callers 3

wrapperFunction · 0.85
getMethod · 0.85

Calls 2

identify_userFunction · 0.90
is_adminMethod · 0.45

Tested by

no test coverage detected