beat.web.common.permissions module

class beat.web.common.permissions.IsSuperuser[source]

Bases: rest_framework.permissions.BasePermission

Global permission check for super user

has_permission(request, view)[source]

Return True if permission is granted, False otherwise.

class beat.web.common.permissions.IsAuthor[source]

Bases: rest_framework.permissions.BasePermission

Global permission check that verify if the user is also the onwer of the asked data

has_permission(request, view)[source]

Return True if permission is granted, False otherwise.