Merge pull request #5034 from owncloud/fix-5033

Only accept notification API Capability if endpoint is OCS-enabled
This commit is contained in:
Daniel Molkentin 2016-07-05 12:46:20 +02:00 committed by GitHub
commit a338b9f269

View file

@ -73,7 +73,8 @@ bool Capabilities::shareResharing() const
bool Capabilities::notificationsAvailable() const
{
return _capabilities.contains("notifications");
// We require the OCS style API in 9.x, can't deal with the REST one only found in 8.2
return _capabilities.contains("notifications") && _capabilities["notifications"].toMap().contains("ocs-endpoints");
}
bool Capabilities::isValid() const