14 lines
362 B
Python
14 lines
362 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from greenmine.base.permissions import BasePermission
|
|
|
|
|
|
class MilestonePermission(BasePermission):
|
|
get_permission = "view_milestone"
|
|
put_permission = "change_milestone"
|
|
patch_permission = "change_milestone"
|
|
delete_permission = "delete_milestone"
|
|
safe_methods = ["HEAD", "OPTIONS"]
|
|
path_to_project = ["project"]
|
|
|