added access control model and more stuff around access mgmt
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user