Source

django-permissions / permissions / settings.py

from django.conf import settings

ROLES_ENABLED=getattr(settings,'PERMISSIONS_ROLES_ENABLED',True)

OBJECTS_PERM_CHECK=getattr(settings,'PERMISSIONS_OBJECTS_PERM_CHECK',True)

OBJECTS_PERM_CHECK_OVERRIDE=getattr(settings,'PERMISSIONS_OBJECTS_PERM_CHECK_OVERRIDE',False)

OBJECTS_PERM_STRING=getattr(settings,'PERMISSIONS_OBJECTS_PERM_STRING','%s')

OBJECTS_GENERIC_CHECK=getattr(settings,'PERMISSIONS_OBJECTS_GENERIC_CHECK',True)

OBJECTS_GENERIC_STRING=getattr(settings,'PERMISSIONS_OBJECTS_GENERIC_STRING','has_permission')

RETURN_403=getattr(settings,'PERMISSIONS_RETURN_403','True')
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.