remove extra sections
parent
fc9af7d1df
commit
81ff7fd666
|
@ -22,24 +22,18 @@ from django.utils.translation import ugettext_lazy as _
|
|||
|
||||
class Section(enum.IntEnum):
|
||||
timeline = 1
|
||||
search = 2
|
||||
epics = 3
|
||||
backlog = 4
|
||||
kanban = 5
|
||||
issues = 6
|
||||
wiki = 7
|
||||
team = 8
|
||||
admin = 9
|
||||
epics = 2
|
||||
backlog = 3
|
||||
kanban = 4
|
||||
issues = 5
|
||||
wiki = 6
|
||||
|
||||
|
||||
HOMEPAGE_CHOICES = (
|
||||
(Section.timeline, _("Timeline")),
|
||||
(Section.search, _("Search")),
|
||||
(Section.epics, _("Epics")),
|
||||
(Section.backlog, _("Backlog")),
|
||||
(Section.kanban, _("Kanban")),
|
||||
(Section.issues, _("Issues")),
|
||||
(Section.wiki, _("TeamWiki")),
|
||||
(Section.team, _("Team")),
|
||||
(Section.admin, _("Admin")),
|
||||
)
|
||||
|
|
|
@ -14,7 +14,4 @@ def get_allowed_sections(obj):
|
|||
user_has_perm(obj.user, active_modules[key], obj.project):
|
||||
sections.append(getattr(Section, key))
|
||||
|
||||
if is_project_admin(obj.user, obj.project):
|
||||
sections.append(Section.admin)
|
||||
|
||||
return sections
|
||||
|
|
Loading…
Reference in New Issue