beat.web.experiments.permissions module

class beat.web.experiments.permissions.IsDatabaseAccessible[source]

Bases: rest_framework.permissions.BasePermission

The logged in user must have access to the database used by the experiment

message = 'Database is not accessible'
has_object_permission(request, view, obj)[source]

Return True if permission is granted, False otherwise.