Repository navigation
Do not register JS share plugin if core sharing API is disabled - #17343
Conversation
|
A new inspection was created. |
|
Works and fixes the issue 👍 |
|
Looks good 👍 |
|
This way the script still get loaded in the sense that we send it to the client, we just make sure that it doesn't get executed. Wouldn't it make more sense to already block it server-side: https://github.com/owncloud/core/blob/master/apps/files_sharing/appinfo/app.php#L57 ? Probably we could skip everything which is done in the app.php if sharing in core is disabled. |
|
Yes, but I didn't want to look deeper... because in theory we could just disable the whole app if that checkbox is disabled. This PR is just a quickfix, probably not worth spending more time on it. |
…share Do not register JS share plugin if core sharing API is disabled
|
This is a 8.2 pr so no reason to rush. I would have preferred a better fix, we already have enough quick-fixes in our code.... anyway. |
@schiesbn feel free to revert |
|
@karlitschek can we backport this to 8.1 ? It seems many people have observed this, see #19433 (comment) |
|
@PVince81 Backport makes sense. Thanks. 👍 |
|
stable8.1 #19439 |

Fixes #15186
To test: disable sharing API in the admin page, but leave the files_sharing app enabled.
Please review @MorrisJobke @nickvergessen @icewind1991 @schiesbn