summaryrefslogtreecommitdiff
path: root/includes/classes
diff options
context:
space:
mode:
Diffstat (limited to 'includes/classes')
-rw-r--r--includes/classes/class_event.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/includes/classes/class_event.php b/includes/classes/class_event.php
index 70c99b754b..2dcb91824b 100644
--- a/includes/classes/class_event.php
+++ b/includes/classes/class_event.php
@@ -137,7 +137,13 @@ class Event {
// Check whether this fact is protected against edit
public function canEdit() {
- return WT_USER_GEDCOM_ADMIN || strpos($this->gedcomRecord, "\n2 RESN locked")===false;
+ // Managers can edit anything
+ // Members cannot edit RESN, CHAN and locked records
+ return
+ WT_USER_GEDCOM_ADMIN ||
+ strpos($this->gedcomRecord, "\n2 RESN locked")===false &&
+ $this->getTag()!='RESN' &&
+ $this->getTag()!='CHAN';
}
/**