added access control model and more stuff around access mgmt

This commit is contained in:
2019-10-23 16:33:24 +02:00
parent 6b4f7c8118
commit d61c395d2c
6 changed files with 117 additions and 28 deletions

View File

@@ -6,7 +6,7 @@ import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config():
class Config:
# SERVER_NAME = "ubkaps154.ubka.uni-karlsruhe.de:5443"
# SERVER_NAME = "localhost.dev"
SERVER_NAME = "localhost:5443"
@@ -97,6 +97,9 @@ class Config():
"password": "admin"}
]
ROLE_PERMISSION_MAPPINGS = {
"admin": ["ADMIN"]
}
class ProductionConfig(Config):
DATABASE_URI = 'mysql://user@localhost/foo'