Example #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)
Example #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)
Example #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)
Example #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)