beat.web.reports.permissions module¶
-
class
beat.web.reports.permissions.IsAuthor[source]¶ Bases:
rest_framework.permissions.BasePermissionThe logged in user should also be the author
-
class
beat.web.reports.permissions.IsEditable[source]¶ Bases:
rest_framework.permissions.BasePermissionObject level permission that returns true if the given object has the Report.EDITABLE status
-
message= 'This report is read-only'¶
-
-
class
beat.web.reports.permissions.IsLocked[source]¶ Bases:
rest_framework.permissions.BasePermissionObject level permission that returns true if the given object status is not Report.EDITABLE
-
message= 'This report is not locked'¶
-
-
class
beat.web.reports.permissions.IsPublished[source]¶ Bases:
rest_framework.permissions.BasePermissionObject level permission that returns true if the given object status is Report.PUBLISHED
-
message= 'This report is not published'¶
-
-
class
beat.web.reports.permissions.IsAuthorOrPublished[source]¶ Bases:
rest_framework.permissions.BasePermissionThe logged in user should also be the author or the report must be published