summaryrefslogtreecommitdiffstats
path: root/ogcp/models.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-04-26 10:36:25 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-04-27 17:24:08 +0200
commit57da4f4efa0b8b7d96b1238b0127aa83d20007eb (patch)
tree6d3185e571231b923aa7d020dc5224a3a246c374 /ogcp/models.py
parentc7b0024d2405d29e5c36445b6d28af046b2213f1 (diff)
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".
Diffstat (limited to 'ogcp/models.py')
-rw-r--r--ogcp/models.py3
1 files changed, 2 insertions, 1 deletions
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