opencode ergebnis V0.1
This commit is contained in:
1 parent
61d86a3d83
commit
7e498ebc3f
71 files changed
+28982
-46
No files matched your search
@@ -0,0 +1,20 @@
|
||||
"""
|
||||
Accountverwaltung
|
||||
"""
|
||||
from flask import Blueprint, render_template, g
|
||||
from cmbnet.auth import role_required
|
||||
from cmbnet.db import get_db
|
||||
|
||||
admin_accounts_bp = Blueprint('admin', __name__)
|
||||
|
||||
|
||||
@admin_accounts_bp.route('/accounts')
|
||||
@role_required('Administrator')
|
||||
def accounts(**kwargs):
|
||||
"""Accountverwaltung"""
|
||||
db = get_db()
|
||||
accounts = db.execute(
|
||||
'SELECT a.*, t.code as tenant_code FROM accounts a JOIN tenants t ON a.tenant_id = t.id WHERE a.tenant_id = ? ORDER BY a.id',
|
||||
(g.tenant_id,)
|
||||
).fetchall()
|
||||
return render_template('admin/accounts.html', accounts=accounts)
|
||||
Reference in new issue
Block a user