owncloud/core — pull request #6270 by PVince81 (2013-12-09 17:18:15+00:00)
Title: Fixed sharing results to include the correct permissions

Passing $includeCollections would return more than one entry which gives
mixed up file permissions.

Added a method getFile() that doesn't set $includeCollections to make
sure we only get one result which is the file itself.

Fixes #6265

Please review @karlitschek @schiesbn @bartv2