def is_current_user_admin():
 return (os.environ.get('USER_IS_ADMIN', '0') == '1')

def is_current_user_admin ( ) : return ( os . environ . get ( 'USER_IS_ADMIN' , '0' ) == '1' )
returns true if the user on whose behalf the request was made is an admin .