mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
actually fail to other proxmox nodes, yapf everything
This commit is contained in:
parent
7aadd423e7
commit
227060dd77
3 changed files with 37 additions and 24 deletions
|
|
@ -14,6 +14,8 @@ def gen_password(
|
|||
def build_user_dict(session, db):
|
||||
user_dict = dict()
|
||||
user_dict['username'] = session['userinfo']['preferred_username']
|
||||
user_dict['active'] = 'active' in session['userinfo']['groups'] or user_dict['username'] in get_allowed_users(db)
|
||||
user_dict[
|
||||
'active'] = 'active' in session['userinfo']['groups'] or user_dict['username'] in get_allowed_users(
|
||||
db)
|
||||
user_dict['rtp'] = 'rtp' in session['userinfo']['groups']
|
||||
return user_dict
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue