owncloud/core — pull request #6447 by butonic (2013-12-16 16:07:29+00:00)
Title: fix quota calculation for Home Storage

The owner of a home storage is the user. Without this the implementation from Storag\Common will be used, returning the logged in user, which is problematic when you want to write code that allows reading the current quota as an administrator. As a result OC_FileProxy_Quota::getFreeSpace will correctly resolve the storage for '/someuser/files' but then use the current user to resolve the storage for '/currentuser/'. The two storage ids are unequal causing the method to always return -1.

Fixes a customer issue.

* [ ] forward port to stable6
* [ ] forward port to master

@icewind1991 @karlitschek @DeepDiver1975