summaryrefslogtreecommitdiff
path: root/app/GedcomRecord.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/GedcomRecord.php')
-rw-r--r--app/GedcomRecord.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/GedcomRecord.php b/app/GedcomRecord.php
index 26fbf44301..0e71c3537f 100644
--- a/app/GedcomRecord.php
+++ b/app/GedcomRecord.php
@@ -503,7 +503,15 @@ class GedcomRecord
*/
public function canEdit(): bool
{
- return Auth::isManager($this->tree) || Auth::isEditor($this->tree) && strpos($this->gedcom, "\n1 RESN locked") === false;
+ if ($this->isPendingDeletion()) {
+ return false;
+ }
+
+ if (Auth::isManager($this->tree)) {
+ return true;
+ }
+
+ return Auth::isEditor($this->tree) && strpos($this->gedcom, "\n1 RESN locked") === false;
}
/**