Skip to content

Commit

Permalink
Fixed #7232
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Dec 12, 2020
1 parent b04230c commit 76e2165
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -31,6 +31,7 @@
- Fixed a bug where the `|attr` Twig filter wasn’t removing `class` and `style` attributes when they were set to `false` or `null`. ([#7234](https://github.com/craftcms/cms/issues/7234))
- Fixed a bug where eager-loading would load incorrect elements in some cases when using GraphQL API.
- Fixed a bug where select inputs could bleed out of their container divs. ([#7183](https://github.com/craftcms/cms/issues/7183))
- Fixed a bug where Edit Entry pages would show “Save and add another” and “Save as a new entry” action options for users who didn’t have permission to create new entries in the section. ([#7232](https://github.com/craftcms/cms/issues/7232))

## 3.5.16 - 2020-11-24

Expand Down
4 changes: 2 additions & 2 deletions src/templates/entries/_edit.html
Expand Up @@ -30,8 +30,8 @@
{% if section.type == 'structure' %}
{% set nextEntryParams = nextEntryParams|merge(['parentId={parent.id}']) %}
{% endif %}
{% set canDuplicateSource = true %}
{% set canAddAnother = true %}
{% set canDuplicateSource = currentUser.can("createEntries#{permissionSuffix}") %}
{% set canAddAnother = currentUser.can("createEntries#{permissionSuffix}") %}
{% set addAnotherRedirectUrl = "entries/#{section.handle}/new?" ~ nextEntryParams|join('&') %}
{% endif %}

Expand Down

0 comments on commit 76e2165

Please sign in to comment.