Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
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)
Exemple #4
0
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)