original_string: public static function isUserHasCapability($idSites, $capability)
      {
          try {
              self::checkUserHasCapability($idSites, $capability);
              return true;
          } catch (Exception $e) {
              return false;
          }
      }
code: public static function isUserHasCapability($idSites, $capability)
      {
          try {
              self::checkUserHasCapability($idSites, $capability);
              return true;
          } catch (Exception $e) {
              return false;
          }
      }
code_tokens: public static function isUserHasCapability ( $ idSites , $ capability ) { try { self :: checkUserHasCapability ( $ idSites , $ capability ) ; return true ; } catch ( Exception $ e ) { return false ; } }
docstring: Returns `true` if the current user has the given capability for the given sites.
  
  @return bool
  @api
docstring_tokens: Returns true if the current user has the given capability for the given sites .