-
- Downloads
sharingcheckmiddleware now handles externalshares as well
Added new annotations for the externalsharescontroller class * @NoOutgoingFederatedSharingRequired * @NoIncomingFederatedSharingRequired By default both are required for all functions in the externalSharesController. A proper exception is thrown and then a 405 is returned instead of the default error page. Since it is only an API endpoint this makes more sense. Unit tests added and updated
Showing
- apps/files_sharing/appinfo/app.php 0 additions, 3 deletionsapps/files_sharing/appinfo/app.php
- apps/files_sharing/appinfo/application.php 2 additions, 5 deletionsapps/files_sharing/appinfo/application.php
- apps/files_sharing/lib/controllers/externalsharescontroller.php 8 additions, 17 deletions...iles_sharing/lib/controllers/externalsharescontroller.php
- apps/files_sharing/lib/exceptions/brokenpath.php 0 additions, 0 deletionsapps/files_sharing/lib/exceptions/brokenpath.php
- apps/files_sharing/lib/exceptions/s2sexception.php 26 additions, 0 deletionsapps/files_sharing/lib/exceptions/s2sexception.php
- apps/files_sharing/lib/middleware/sharingcheckmiddleware.php 35 additions, 3 deletionsapps/files_sharing/lib/middleware/sharingcheckmiddleware.php
- apps/files_sharing/tests/controller/externalsharecontroller.php 3 additions, 33 deletions...iles_sharing/tests/controller/externalsharecontroller.php
- apps/files_sharing/tests/middleware/sharingcheckmiddleware.php 121 additions, 5 deletions...files_sharing/tests/middleware/sharingcheckmiddleware.php
Loading
Please register or sign in to comment