app/Fact.php
public function canEdit(): bool
    {
        if ($this->isPendingDeletion()) {
            return false;
        }

        if (Auth::isManager($this->record->tree())) {
            return true;
        }

        // Members cannot edit RESN, CHAN and locked records
        return Auth::isEditor($this->record->tree()) && strpos($this->gedcom, "\n2 RESN locked") === false && $this->getTag() !== 'RESN' && $this->getTag() !== 'CHAN';
    }
public function canEdit(): bool
    {
        if ($this->isPendingDeletion()) {
            return false;
        }

        if (Auth::isManager($this->record->tree())) {
            return true;
        }

        // Members cannot edit RESN, CHAN and locked records
        return Auth::isEditor($this->record->tree()) && strpos($this->gedcom, "\n2 RESN locked") === false && $this->getTag() !== 'RESN' && $this->getTag() !== 'CHAN';
    }
public function canEdit ( ) : bool { if ( $ this -> isPendingDeletion ( ) ) { return false ; } if ( Auth :: isManager ( $ this -> record -> tree ( ) ) ) { return true ; } // Members cannot edit RESN, CHAN and locked records return Auth :: isEditor ( $ this -> record -> tree ( ) ) && strpos ( $ this -> gedcom , "\n2 RESN locked" ) === false && $ this -> getTag ( ) !== 'RESN' && $ this -> getTag ( ) !== 'CHAN' ; }
Check whether this fact is protected against edit

@return bool
Check whether this fact is protected against edit