Commit 0bb9591a by Aeolus

新增权限6

parent 438b74ac
......@@ -36,7 +36,7 @@ def index():
invalid_money_lastweek, invalid_rent_lastweek = IndexService.get_invalid_production_info(spot_id,
start_time_lastweek,
end_time_lastweek)
if cur_user.level == 1:
if cur_user.level == 1 or cur_user == 6:
admin_week = {}
admin_week['week_income'] = week_income
admin_week['week_rent'] = week_rent
......@@ -77,7 +77,7 @@ def index():
invalid_money_lastmonth, invalid_rent_lastmonth = IndexService.get_invalid_production_info(spot_id,
start_time_lastmonth,
end_time_lastmonth)
if cur_user.level == 1:
if cur_user.level == 1 or cur_user == 6:
admin_month = {}
admin_month['month_income'] = month_income
admin_month['month_rent'] = month_rent
......@@ -112,7 +112,7 @@ def index():
history_rent = IndexService.get_history_production(spot_id)
history_refund_money, history_refund_rent = IndexService.get_history_refund_rent(spot_id)
invalid_money_history, invalid_rent_history = IndexService.get_invalid_production_info_all(spot_id)
if cur_user.level == 1:
if cur_user.level == 1 or cur_user == 6:
admin_history = {}
admin_history['history_income'] = history_income
admin_history['history_rent'] = history_rent
......@@ -164,7 +164,7 @@ def index():
rent_invalid_money, rent_invalid_rent = IndexService.get_invalid_production_info(spot_id, start_time_today,
end_time_today)
if cur_user.level == 1:
if cur_user.level == 1 or cur_user == 6:
# 超级管理员
admin_today = {}
admin_today['today_income'] = today_income
......
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