original_string: public static function can_comment_user($planuserid) {
          global $USER;
  
          $capabilities = array('moodle/competency:plancomment');
          if ($USER->id == $planuserid) {
              $capabilities[] = 'moodle/competency:plancommentown';
          }
  
          return has_any_capability($capabilities, context_user::instance($planuserid));
      }
code: public static function can_comment_user($planuserid) {
          global $USER;
  
          $capabilities = array('moodle/competency:plancomment');
          if ($USER->id == $planuserid) {
              $capabilities[] = 'moodle/competency:plancommentown';
          }
  
          return has_any_capability($capabilities, context_user::instance($planuserid));
      }
code_tokens: public static function can_comment_user ( $ planuserid ) { global $ USER ; $ capabilities = array ( 'moodle/competency:plancomment' ) ; if ( $ USER -> id == $ planuserid ) { $ capabilities [ ] = 'moodle/competency:plancommentown' ; } return has_any_capability ( $ capabilities , context_user :: instance ( $ planuserid ) ) ; }
docstring: Can the current user comment on a user's plan?
  
  @param int $planuserid The user ID the plan belongs to.
  @return bool
docstring_tokens: Can the current user comment on a user s plan?