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

@return bool
@api
Returns true if the current user has the given capability for the given sites .