예제 #1
0
파일: auth_utp.py 프로젝트: liuzelei/walis
 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)
예제 #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)
예제 #3
0
파일: auth_utp.py 프로젝트: liuzelei/walis
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)
예제 #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)