def request_user_has_permission(request, permission_type):
 user_db = get_user_db_from_request(request=request)
 return user_has_permission(user_db=user_db, permission_type=permission_type)

def request_user_has_permission ( request , permission_type ) : user_db = get_user_db_from_request ( request = request ) return user_has_permission ( user_db = user_db , permission_type = permission_type )
check that currently logged-in user has specified permission .