Skip to content
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

IBX-8477: Removed check whether the draft belongs to the user #1291

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,16 @@
{% block action_btns_content %}
{{ custom_actions_column }}
{% if is_draft_conflict %}
{% set edit_draft_disabled = (version.author and version.author.id != ibexa_admin_ui_config.user.user.id) %}
<a
href="{{ edit_url }}"
class="btn ibexa-btn ibexa-btn--ghost ibexa-btn--no-text {% if edit_draft_disabled %}ibexa-btn--prevented{% endif %}"
class="btn ibexa-btn ibexa-btn--ghost ibexa-btn--no-text"
title="{{ 'tab.versions.table.action.draft.edit'|trans|desc('Edit') }}"
{% if edit_draft_disabled %}disabled{% endif %}
>
<svg class="ibexa-icon ibexa-icon--small ibexa-icon--edit">
<use xlink:href="{{ ibexa_icon_path('edit') }}"></use>
</svg>
</a>
{% elseif is_draft %}
{% set edit_draft_disabled = (version.author and version.author.id != ibexa_admin_ui_config.user.user.id) %}
<button
data-content-draft-edit-url="{{ edit_url }}"
data-version-has-conflict-url="{{ path('ibexa.version.has_no_conflict', {
Expand All @@ -129,9 +126,8 @@
}) }}"
data-content-id="{{ version.contentInfo.id }}"
data-language-code="{{ version.initialLanguageCode }}"
class="btn ibexa-btn ibexa-btn--ghost ibexa-btn--no-text mx-2 ibexa-btn--content-draft-edit {% if edit_draft_disabled %}ibexa-btn--prevented{% endif %}"
class="btn ibexa-btn ibexa-btn--ghost ibexa-btn--no-text mx-2 ibexa-btn--content-draft-edit"
title="{{ 'tab.versions.table.action.draft.edit'|trans|desc('Edit') }}"
{% if edit_draft_disabled %}disabled{% endif %}
>
<svg class="ibexa-icon ibexa-icon--small ibexa-icon--edit">
<use xlink:href="{{ ibexa_icon_path('edit') }}"></use>
Expand Down
Loading