Skip to content
Snippets Groups Projects
Verified Commit 28fa2009 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Merge branch '25-roles-and-permissions' of edugit.org:AlekSIS/official/AlekSIS...

Merge branch '25-roles-and-permissions' of edugit.org:AlekSIS/official/AlekSIS into 25-roles-and-permissions
parents c7770ece 8bc8142c
No related branches found
No related tags found
1 merge request!207Resolve "Roles and permissions"
Pipeline #1604 failed
......@@ -30,6 +30,8 @@ _settings = LazySettings(
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SILENCED_SYSTEM_CHECKS = []
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = _settings.get("secret_key", "DoNotUseInProduction")
......@@ -582,6 +584,8 @@ LOGGING = {
GUARDIAN_RAISE_403 = True
ANONYMOUS_USER_NAME = None
SILENCED_SYSTEM_CHECKS.append("guardian.W001")
# Append authentication backends
AUTHENTICATION_BACKENDS.append("rules.permissions.ObjectPermissionBackend")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment