class IssueDueDatePermission(TinaResourcePermission): retrieve_perms = HasProjectPerm('view_project') create_perms = IsProjectAdmin() update_perms = IsProjectAdmin() partial_update_perms = IsProjectAdmin() destroy_perms = IsProjectAdmin() list_perms = AllowAny() bulk_update_order_perms = IsProjectAdmin()
class MembershipPermission(TinaResourcePermission): retrieve_perms = HasProjectPerm('view_project') create_perms = IsProjectAdmin() update_perms = IsProjectAdmin() partial_update_perms = IsProjectAdmin() destroy_perms = IsProjectAdmin() list_perms = AllowAny() bulk_create_perms = IsProjectAdmin() resend_invitation_perms = IsProjectAdmin()
class UserStoryPermission(TinaResourcePermission): enought_perms = IsProjectAdmin() | IsSuperUser() global_perms = None retrieve_perms = HasProjectPerm('view_us') by_ref_perms = HasProjectPerm('view_us') create_perms = HasProjectPerm('add_us_to_project') | HasProjectPerm('add_us') update_perms = CommentAndOrUpdatePerm('modify_us', 'comment_us') partial_update_perms = CommentAndOrUpdatePerm('modify_us', 'comment_us') destroy_perms = HasProjectPerm('delete_us') list_perms = AllowAny() filters_data_perms = AllowAny() csv_perms = AllowAny() bulk_create_perms = IsAuthenticated() & (HasProjectPerm('add_us_to_project') | HasProjectPerm('add_us')) bulk_update_order_perms = HasProjectPerm('modify_us') bulk_update_milestone_perms = HasProjectPerm('modify_us') upvote_perms = IsAuthenticated() & HasProjectPerm('view_us') downvote_perms = IsAuthenticated() & HasProjectPerm('view_us') watch_perms = IsAuthenticated() & HasProjectPerm('view_us') unwatch_perms = IsAuthenticated() & HasProjectPerm('view_us')
class IssuePermission(TinaResourcePermission): enought_perms = IsProjectAdmin() | IsSuperUser() global_perms = None retrieve_perms = HasProjectPerm('view_issues') create_perms = HasProjectPerm('add_issue') update_perms = CommentAndOrUpdatePerm('modify_issue', 'comment_issue') partial_update_perms = CommentAndOrUpdatePerm('modify_issue', 'comment_issue') destroy_perms = HasProjectPerm('delete_issue') list_perms = AllowAny() filters_data_perms = AllowAny() csv_perms = AllowAny() bulk_create_perms = HasProjectPerm('add_issue') bulk_update_milestone_perms = HasProjectPerm('modify_issue') delete_comment_perms = HasProjectPerm('modify_issue') upvote_perms = IsAuthenticated() & HasProjectPerm('view_issues') downvote_perms = IsAuthenticated() & HasProjectPerm('view_issues') watch_perms = IsAuthenticated() & HasProjectPerm('view_issues') unwatch_perms = IsAuthenticated() & HasProjectPerm('view_issues')
class UserStoryWatchersPermission(TinaResourcePermission): enought_perms = IsProjectAdmin() | IsSuperUser() global_perms = None retrieve_perms = HasProjectPerm('view_us') list_perms = HasProjectPerm('view_us')
class TaskVotersPermission(TinaResourcePermission): enought_perms = IsProjectAdmin() | IsSuperUser() global_perms = None retrieve_perms = HasProjectPerm('view_tasks') list_perms = HasProjectPerm('view_tasks')
class ProjectFansPermission(TinaResourcePermission): enought_perms = IsProjectAdmin() | IsSuperUser() global_perms = None retrieve_perms = HasProjectPerm('view_project') list_perms = HasProjectPerm('view_project')
class ProjectPermission(TinaResourcePermission): retrieve_perms = HasProjectPerm('view_project') by_slug_perms = HasProjectPerm('view_project') create_perms = IsAuthenticated() update_perms = IsProjectAdmin() partial_update_perms = IsProjectAdmin() destroy_perms = IsProjectAdmin() modules_perms = IsProjectAdmin() list_perms = AllowAny() change_logo_perms = IsProjectAdmin() remove_logo_perms = IsProjectAdmin() stats_perms = HasProjectPerm('view_project') member_stats_perms = HasProjectPerm('view_project') issues_stats_perms = HasProjectPerm('view_project') regenerate_epics_csv_uuid_perms = IsProjectAdmin() regenerate_userstories_csv_uuid_perms = IsProjectAdmin() regenerate_issues_csv_uuid_perms = IsProjectAdmin() regenerate_tasks_csv_uuid_perms = IsProjectAdmin() delete_epics_csv_uuid_perms = IsProjectAdmin() delete_userstories_csv_uuid_perms = IsProjectAdmin() delete_issues_csv_uuid_perms = IsProjectAdmin() delete_tasks_csv_uuid_perms = IsProjectAdmin() tags_perms = HasProjectPerm('view_project') tags_colors_perms = HasProjectPerm('view_project') like_perms = IsAuthenticated() & HasProjectPerm('view_project') unlike_perms = IsAuthenticated() & HasProjectPerm('view_project') watch_perms = IsAuthenticated() & HasProjectPerm('view_project') unwatch_perms = IsAuthenticated() & HasProjectPerm('view_project') create_template_perms = IsSuperUser() leave_perms = CanLeaveProject() transfer_validate_token_perms = IsAuthenticated() & HasProjectPerm( 'view_project') transfer_request_perms = IsProjectAdmin() transfer_start_perms = IsObjectOwner() transfer_reject_perms = IsAuthenticated() & HasProjectPerm('view_project') transfer_accept_perms = IsAuthenticated() & HasProjectPerm('view_project') create_tag_perms = IsProjectAdmin() edit_tag_perms = IsProjectAdmin() delete_tag_perms = IsProjectAdmin() mix_tags_perms = IsProjectAdmin() duplicate_perms = IsAuthenticated() & HasProjectPerm('view_project')