src/Webtrees/Module/Sosa/SosaConfigController.php
protected function canUpdate() {        
        $user_id = Filter::postInteger('userid', -1) ?: Filter::getInteger('userid', -1);
        return Auth::check() && 
            ( 
                $user_id == Auth::user()->getUserId() ||        // Allow update for yourself
                ($user_id == -1 && Auth::isManager(Globals::getTree()))   // Allow a manager to update the default user
             );
    }
protected function canUpdate() {        
        $user_id = Filter::postInteger('userid', -1) ?: Filter::getInteger('userid', -1);
        return Auth::check() && 
            ( 
                $user_id == Auth::user()->getUserId() ||        // Allow update for yourself
                ($user_id == -1 && Auth::isManager(Globals::getTree()))   // Allow a manager to update the default user
             );
    }
protected function canUpdate ( ) { $ user_id = Filter :: postInteger ( 'userid' , - 1 ) ? : Filter :: getInteger ( 'userid' , - 1 ) ; return Auth :: check ( ) && ( $ user_id == Auth :: user ( ) -> getUserId ( ) || // Allow update for yourself ( $ user_id == - 1 && Auth :: isManager ( Globals :: getTree ( ) ) ) // Allow a manager to update the default user ) ; }
Check if the user can update the sosa ancestors list

@return bool
Check if the user can update the sosa ancestors list