Note

This is a public alpha release, and therefore features and functionality may change and the software and documentation may contain technical bugs or other issues. If you discover any issues please consider registering a GitHub issue.

datasources.permissions module

class datasources.permissions.HasPermissionLevelMixin[source]

Bases: django.contrib.auth.mixins.UserPassesTestMixin

Mixin to reject users who do not have permission to view this DataSource.

permission_level = None

Required permission level from datasources.models.UserPermissionLevels

test_func() → bool[source]