12 lines
319 B
Python
12 lines
319 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from greenmine.base.permissions import BasePermission
|
|
|
|
|
|
class DocumentPermission(BasePermission):
|
|
get_permission = "can_view_document"
|
|
put_permission = "can_change_document"
|
|
delete_permission = "can_delete_document"
|
|
safe_methods = ["HEAD", "OPTIONS"]
|
|
path_to_document = []
|