コード例 #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)