def wrapper(restaurant_id): restaurant_id = int(restaurant_id) if not current_user.utp_is_restaurant_owner(restaurant_id): raise_auth_exc(AUTH_UTP_FAILED_ERROR) return func(restaurant_id)
def check_is_rst_owner(restaurant_id): restaurant_id = int(restaurant_id) if not current_user.utp_is_restaurant_owner(restaurant_id): raise_auth_exc(AUTH_UTP_FAILED_ERROR)