From 57da4f4efa0b8b7d96b1238b0127aa83d20007eb Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Tue, 26 Apr 2022 10:36:25 +0200 Subject: Add user role administrator ogCP now have to types of users, regular and administrator users. ogCP configuration file defines users roles with the boolean field "ADMIN". --- ogcp/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ogcp/models.py') diff --git a/ogcp/models.py b/ogcp/models.py index 4b88a41..d27b869 100644 --- a/ogcp/models.py +++ b/ogcp/models.py @@ -8,6 +8,7 @@ from flask_login import UserMixin class User(UserMixin): - def __init__(self, username, scopes): + def __init__(self, username, scopes, admin): self.id = username self.scopes = scopes + self.admin = admin -- cgit v1.2.3-18-g5258