Commit Graph

14 Commits

Author SHA1 Message Date
Roeland Jago Douma 4006763f5b Move the Share20OCS code over to use the proper DataResponse 2016-08-10 12:40:32 +02:00
Roeland Jago Douma 0556e40d3e Fix tests 2016-08-05 14:17:32 +02:00
Roeland Jago Douma 4504d7f5e9 DataResponse required ['data' => DATA] 2016-08-05 14:17:31 +02:00
Roeland Jago Douma 7fdc2f32fa More exceptions 2016-08-05 14:17:31 +02:00
Roeland Jago Douma 3a31b2875b Add OCSShareAPIMiddleware
* This will cleanup the locks after each request
* Move check for enabled share api to the middleware
2016-08-05 14:17:31 +02:00
Roeland Jago Douma 8b160077f1 Throw OCSNotFoundExceptions 2016-08-05 14:17:25 +02:00
Roeland Jago Douma a32caa4904 Convert Share API to use the AppFramework 2016-08-05 14:17:25 +02:00
Joas Schilling 4e5fb74773 Do not allow to delete/update group shares as a group member 2016-08-02 10:50:35 +02:00
Joas Schilling 813f0a0f40 Fix apps/ 2016-07-21 18:13:57 +02:00
Joas Schilling 76736731eb Allow shares with create permissions only aswell 2016-07-14 10:27:29 +02:00
Vincent Petry 955635c7aa Add explicit delete permission to link shares
Link shares always allowed deletion, however internally the permissions
were stored as 7 which lacked delete permissions. This created an
inconsistency in the Webdav permissions.

This fix makes sure we include delete permissions in the share
permissions, which now become 15.

In case a client is still passing 7 for legacy reasons, it gets
converted automatically to 15.
2016-06-24 09:48:48 +02:00
Roeland Jago Douma 7c040c0bf9 Show the path relative to the requesting user
A share can only be requested by 3 'types' of people

* owner
* initiator
* recipient

So we have to get the path as the current user. Since that is the only
path that has any meaning to the user.
2016-06-07 15:09:19 +02:00
Lukas Reschke aba539703c Update license headers 2016-05-26 19:57:24 +02:00
Joas Schilling 5001036fd4 Move classes from outside lib/ to PSR-4 2016-05-25 14:59:59 +02:00