Skip to content

Commit

Permalink
Fixed #14294
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 5, 2024
1 parent 4f96c7e commit 8884f1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Fixed a bug where layout components provided by disabled plugins weren’t getting omitted. ([#14236](https://github.com/craftcms/cms/pull/14236))
- Fixed a bug where “Move to the left” and “Move to the right” actions within field layout designers weren’t always getting enabled when they should, if a new tab was added.
- Fixed a bug where “Move to the left” and “Move to the right” actions within field layout designers were labelled incorrectly for right-to-left languages.
- Fixed a bug where users with “Create entries” permission but not “Delete entries” weren’t allowed to delete their own unpublished drafts. ([#14294](https://github.com/craftcms/cms/issues/14294))

## 4.7.1 - 2024-01-29

Expand Down
2 changes: 1 addition & 1 deletion src/elements/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,7 @@ public function canDelete(User $user): bool
return true;
}

if ($this->getIsDraft() && $this->getIsDerivative()) {
if ($this->getIsDraft()) {
/** @var static|DraftBehavior $this */
return (
$this->creatorId === $user->id ||
Expand Down

0 comments on commit 8884f1d

Please sign in to comment.