View source on GitHub |
Returns true if the User on whose behalf the request was made is an admin.
google.appengine.api.oauth.is_current_user_admin(
_scope=None
)
Args | |
---|---|
_scope
|
The custom OAuth scope or an iterable of scopes at least one of which is accepted. |
Returns | |
---|---|
Boolean. |
Raises | |
---|---|
OAuthRequestError
|
The request was not a valid OAuth request. |
OAuthServiceFailureError
|
An unknown error occurred. |