Files
opencloud/vendor/github.com/opencloud-eu
Jörn Friedrich Dreyer 34d5ffe173 feat(sharing): allow disabling the creation of new shares
We now have two global opt-out switches that stop users from creating
new shares while everything that already exists keeps working:

OC_DISABLE_NEW_USER_SHARES rejects new user, group and federated shares
in graph and reva. Adding members to a space is still possible: graph
skips space roots, based on the stat result, like reva does.

OC_DISABLE_NEW_PUBLIC_LINKS rejects new public links and turning an
internal link into a public link in reva.

The frontend, graph, sharing and ocm services read them. Both default
to false.

We bump reva to 37496dc6abd3, which contains
https://github.com/opencloud-eu/reva/pull/1022

Ported from `owncloud/ocis#12542`, with the flags inverted.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-17 15:36:28 +01:00
..