8000 fix: Issue 7997 remove edit page dialog by jrief · Pull Request #7999 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

fix: Issue 7997 remove edit page dialog #7999

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 31, 2024
8 changes: 0 additions & 8 deletions cms/cms_toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,14 +631,6 @@ def add_page_menu(self):
# first break
current_page_menu.add_break(PAGE_MENU_FIRST_BREAK)

# page edit
with force_language(self.current_lang):
disabled = (
edit_mode or not self.toolbar.object_is_editable()
)
page_edit_url = get_object_edit_url(self.page_content) if self.page_content else ''
current_page_menu.add_link_item(_('Edit this Page'), disabled=disabled, url=page_edit_url)

# page settings
page_settings_url = add_url_parameters(page_settings_url, language=self.toolbar.request_language)
settings_disabled = not edit_mode or not can_change
Expand Down
Loading
0