class IssueHistoryPermission(TinaResourcePermission): retrieve_perms = HasProjectPerm('view_project') edit_comment_perms = IsCommentProjectAdmin() | IsCommentOwner() delete_comment_perms = IsCommentProjectAdmin() | IsCommentOwner() undelete_comment_perms = IsCommentProjectAdmin() | IsCommentDeleter() comment_versions_perms = IsCommentProjectAdmin() | IsCommentOwner()
class EpicWatchersPermission(TinaResourcePermission): enought_perms = IsProjectAdmin() | IsSuperUser() global_perms = None retrieve_perms = HasProjectPerm('view_epics') list_perms = HasProjectPerm('view_epics')
class ResolverPermission(TinaResourcePermission): list_perms = HasProjectPerm('view_project')
class MilestonePermission(TinaResourcePermission): enought_perms = IsProjectAdmin() | IsSuperUser() global_perms = None retrieve_perms = HasProjectPerm('view_milestones') create_perms = HasProjectPerm('add_milestone') update_perms = HasProjectPerm('modify_milestone') partial_update_perms = HasProjectPerm('modify_milestone') destroy_perms = HasProjectPerm('delete_milestone') list_perms = AllowAny() stats_perms = HasProjectPerm('view_milestones') watch_perms = IsAuthenticated() & HasProjectPerm('view_milestones') unwatch_perms = IsAuthenticated() & HasProjectPerm('view_milestones') move_related_items_perms = HasProjectPerm('modify_milestone') move_uss_to_sprint_perms = HasProjectPerm('modify_us') move_tasks_to_sprint_perms = HasProjectPerm('modify_task') move_issues_to_sprint_perms = HasProjectPerm('modify_issue')