Exemplo n.º 1
0
class EpicCustomAttributesValuesPermission(TaigaResourcePermission):
    enough_perms = IsProjectAdmin() | IsSuperUser()
    global_perms = None
    retrieve_perms = HasProjectPerm('view_us')
    update_perms = HasProjectPerm('modify_us')
    partial_update_perms = HasProjectPerm('modify_us')
Exemplo n.º 2
0
class IssueWatchersPermission(TaigaResourcePermission):
    enought_perms = IsProjectAdmin() | IsSuperUser()
    global_perms = None
    retrieve_perms = HasProjectPerm("view_issues")
    list_perms = HasProjectPerm("view_issues")
Exemplo n.º 3
0
class WikiPageWatchersPermission(TaigaResourcePermission):
    enought_perms = IsProjectAdmin() | IsSuperUser()
    global_perms = None
    retrieve_perms = HasProjectPerm('view_wiki_pages')
    list_perms = HasProjectPerm('view_wiki_pages')
Exemplo n.º 4
0
class UserStoryWatchersPermission(TaigaResourcePermission):
    enought_perms = IsProjectAdmin() | IsSuperUser()
    global_perms = None
    retrieve_perms = HasProjectPerm('view_us')
    list_perms = HasProjectPerm('view_us')
Exemplo n.º 5
0
class IssueVotersPermission(TaigaResourcePermission):
    enought_perms = IsProjectOwner() | IsSuperUser()
    global_perms = None
    retrieve_perms = HasProjectPerm('view_issues')
    list_perms = HasProjectPerm('view_issues')
Exemplo n.º 6
0
class UserTimelinePermission(TaigaResourcePermission):
    enough_perms = IsSuperUser()
    global_perms = None
    retrieve_perms = AllowAny()
Exemplo n.º 7
0
class ProjectTimelinePermission(TaigaResourcePermission):
    enough_perms = IsProjectAdmin() | IsSuperUser()
    global_perms = None
    retrieve_perms = HasProjectPerm('view_project')
class ProjectFansPermission(TaigaResourcePermission):
    enought_perms = IsProjectAdmin() | IsSuperUser()
    global_perms = None
    retrieve_perms = HasProjectPerm("view_project")
    list_perms = HasProjectPerm("view_project")
Exemplo n.º 9
0
class TaskWatchersPermission(TaigaResourcePermission):
    enought_perms = IsProjectOwner() | IsSuperUser()
    global_perms = None
    retrieve_perms = HasProjectPerm('view_tasks')
    list_perms = HasProjectPerm('view_tasks')
class TaskCustomAttributesValuesPermission(TaigaResourcePermission):
    enought_perms = IsProjectAdmin() | IsSuperUser()
    global_perms = None
    retrieve_perms = HasProjectPerm("view_tasks")
    update_perms = HasProjectPerm("modify_task")
    partial_update_perms = HasProjectPerm("modify_task")
Exemplo n.º 11
0
class ProjectTemplatePermission(TaigaResourcePermission):
    retrieve_perms = AllowAny()
    create_perms = IsSuperUser()
    update_perms = IsSuperUser()
    destroy_perms = IsSuperUser()
    list_perms = AllowAny()
Exemplo n.º 12
0
class EpicVotersPermission(TaigaResourcePermission):
    enough_perms = IsProjectAdmin() | IsSuperUser()
    global_perms = None
    retrieve_perms = HasProjectPerm('view_epics')
    list_perms = HasProjectPerm('view_epics')
Exemplo n.º 13
0
class IssueCustomAttributesValuesPermission(TaigaResourcePermission):
    enought_perms = IsProjectOwner() | IsSuperUser()
    global_perms = None
    retrieve_perms = HasProjectPerm('view_issues')
    update_perms = HasProjectPerm('modify_issue')
    partial_update_perms = HasProjectPerm('modify_issue')
Exemplo n.º 14
0
class MilestoneWatchersPermission(TaigaResourcePermission):
    enough_perms = IsProjectAdmin() | IsSuperUser()
    global_perms = None
    retrieve_perms = HasProjectPerm('view_milestones')
    list_perms = HasProjectPerm('view_milestones')
Exemplo n.º 15
0
class TaskCustomAttributesValuesPermission(TaigaResourcePermission):
    enought_perms = IsProjectOwner() | IsSuperUser()
    global_perms = None
    retrieve_perms = HasProjectPerm('view_tasks')
    update_perms = HasProjectPerm('modify_task')
Exemplo n.º 16
0
class UserTimelinePermission(TaigaResourcePermission):
    enought_perms = IsSuperUser()
    global_perms = IsAuthenticated()
    retrieve_perms = IsAuthenticated()