From fc9af7d1dfdee03c04714b773b285170a9869d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Hermida?= Date: Mon, 24 Sep 2018 12:51:30 +0200 Subject: [PATCH] Remove meetup from homepage section --- taiga/projects/settings/choices.py | 4 +--- taiga/projects/settings/utils.py | 3 --- tests/integration/test_project_settings.py | 2 -- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/taiga/projects/settings/choices.py b/taiga/projects/settings/choices.py index eac2b940..3fbf4ca4 100644 --- a/taiga/projects/settings/choices.py +++ b/taiga/projects/settings/choices.py @@ -29,8 +29,7 @@ class Section(enum.IntEnum): issues = 6 wiki = 7 team = 8 - meetup = 9 - admin = 10 + admin = 9 HOMEPAGE_CHOICES = ( @@ -42,6 +41,5 @@ HOMEPAGE_CHOICES = ( (Section.issues, _("Issues")), (Section.wiki, _("TeamWiki")), (Section.team, _("Team")), - (Section.meetup, _("Meet Up")), (Section.admin, _("Admin")), ) diff --git a/taiga/projects/settings/utils.py b/taiga/projects/settings/utils.py index 03560eb6..26ed9717 100644 --- a/taiga/projects/settings/utils.py +++ b/taiga/projects/settings/utils.py @@ -14,9 +14,6 @@ def get_allowed_sections(obj): user_has_perm(obj.user, active_modules[key], obj.project): sections.append(getattr(Section, key)) - if obj.project.videoconferences: - sections.append(Section.meetup) - if is_project_admin(obj.user, obj.project): sections.append(Section.admin) diff --git a/tests/integration/test_project_settings.py b/tests/integration/test_project_settings.py index 4ebad339..a3bd6dbf 100644 --- a/tests/integration/test_project_settings.py +++ b/tests/integration/test_project_settings.py @@ -43,7 +43,6 @@ def test_retrieve_homepage_setting_with_allowed_sections(client): # "is_kanban_activated": false, # "is_wiki_activated": true, # "is_issues_activated": true, - # "videoconferences": null, user = f.UserFactory.create() project = f.ProjectFactory.create(owner=user) membership = f.MembershipFactory.create(user=user, project=project, is_admin=False) @@ -77,7 +76,6 @@ def test_avoid_patch_homepage_setting_with_not_allowed_section(client): # "is_kanban_activated": false, # "is_wiki_activated": true, # "is_issues_activated": true, - # "videoconferences": null, user = f.UserFactory.create() project = f.ProjectFactory.create(owner=user) membership = f.MembershipFactory.create(user=user, project=project,