提交 9eec0df9 编辑于 作者: Lancercmd's avatar Lancercmd
浏览文件

Better "unauthorized" output

上级 e86e0b72
......@@ -29,10 +29,14 @@ class Setting:
return redirect(url_for('yobot_login', callback=request.path))
user=User.get_by_id(session['yobot_user'])
if user.authority_group >= 10:
if not user.authority_group >= 100:
uathname = '公会战管理员'
else:
uathname = '成员'
return await render_template(
'unauthorized.html',
limit='主人',
uath=user.authority_group,
uath=uathname,
)
return await render_template(
'admin/setting.html',
......@@ -99,10 +103,14 @@ class Setting:
return redirect(url_for('yobot_login', callback=request.path))
user = User.get_by_id(session['yobot_user'])
if user.authority_group >= 10:
if not user.authority_group >= 100:
uathname = '公会战管理员'
else:
uathname = '成员'
return await render_template(
'unauthorized.html',
limit='主人',
uath=user.authority_group,
uath=uathname,
)
return await render_template('admin/pool-setting.html')
......@@ -160,10 +168,14 @@ class Setting:
return redirect(url_for('yobot_login', callback=request.path))
user = User.get_by_id(session['yobot_user'])
if user.authority_group >= 10:
if not user.authority_group >= 100:
uathname = '公会战管理员'
else:
uathname = '成员'
return await render_template(
'unauthorized.html',
limit='主人',
uath=user.authority_group,
uath=uathname,
)
return await render_template('admin/users.html')
......@@ -253,10 +265,14 @@ class Setting:
return redirect(url_for('yobot_login', callback=request.path))
user = User.get_by_id(session['yobot_user'])
if user.authority_group >= 10:
if not user.authority_group >= 100:
uathname = '公会战管理员'
else:
uathname = '成员'
return await render_template(
'unauthorized.html',
limit='主人',
uath=user.authority_group,
uath=uathname,
)
return await render_template('admin/groups.html')
......
......@@ -34,7 +34,7 @@ else:
class Yobot:
Version = "[v3.6.4-beta.2]"
Version_id = 203
Version_id = 204
# "git rev-list --count HEAD"
def __init__(self, *,
......
Supports Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册