Commit dda46c60 by Aeolus

增加现场同事权限

parent c1cfd765
......@@ -189,7 +189,7 @@ def index():
admin_today['spot_info'] = AgentService.get_spot_info(cur_user)
return jsonify(BASE_RESPONSE(data=admin_today).to_dict())
elif cur_user.level == 2 or cur_user.level == 4:
elif cur_user.level == 2 or cur_user.level == 4 or cur_user.level == 5:
# 代理商
agent_today = {}
agent_today['today_income'] = today_income
......@@ -199,7 +199,7 @@ def index():
agent_today['rent_finish'] = rent_finish
agent_today['rent_not_return'] = rent_not_return
agent_today['discount'] = today_discount
if cur_user.level == 2:
if cur_user.level == 2 or cur_user.level == 5:
agent_today['today_invalid_rent'] = rent_invalid_rent
agent_today['today_invalid_money'] = rent_invalid_money
agent_today['spot_info'] = AgentService.get_spot_info(cur_user)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment