1
0
mirror of https://github.com/owncloud/ocis.git synced 2026-10-23 23:29:02 +03:00
Commit Graph

13 Commits

Author SHA1 Message Date
Roman Perekhod
aa9aa9b454 fix: [OCISDEV-810] fix the space role and custom role checks (#12540)
* fix: [OCISDEV-810] fix the space role and custom role checks

* test: [OCISDEV-810] expect 400 when updating a share to a disabled role

The update (PATCH) permission handlers now enforce the admin role
allowlist, consistent with invite. Updating a share to a disabled role
(Secure Viewer, Denied, Space Editor Without Versions) therefore returns
400 instead of the previous silent 200. Update the @issue-10768 scenarios
to assert the new, correct behavior.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-10 15:13:52 +02:00
Florian Schade
803a0a5c38 fix: l10n make path, validation context key type and available role env 2024-08-23 14:24:19 +02:00
Florian Schade
e348ac290e enhancement: only use allowed roles for the graph service 2024-08-21 14:08:39 +02:00
Florian Schade
196c988b8c enhancement: add unified roles filters 2024-08-21 14:08:38 +02:00
Florian Schade
4638280d21 enhancement: add allowed role validation to the go-playground validator 2024-08-21 14:08:29 +02:00
Florian Schade
56537e94fc enhancement: do not enable all roles by default.
from now on, not all unified roles are enabled by default, instead the available roles are hand-picked in the default setup.

For advanced use-cases, the administrator is capable to enable the desired set of available roles.

Picking roles is not easy since the uid is NOT humanly readable, therefore a cli is contained which lists the available, disabled and enabled roles.
2024-08-21 14:08:27 +02:00
jkoberg
b174b005e7 remove resharing
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-04-05 10:19:14 +02:00
Florian Schade
465c9e3c20 fix: allow one invite at a time only and implement related validations and http status code handling 2024-01-09 17:17:02 +01:00
Michael Barz
fe48dc148a feat: implement edit public link 2023-12-11 22:20:29 +01:00
Ralf Haferkamp
269ce605dd graph sharing: Implement UpdatePermissions
This is an initial implementation of PATCH support on drives/{driveid}/items/{itemid}/permissions/{id}.
It focusses on updating user shares for now. It's possible to update the
expirationDate, roles and/or libregraphResourceActions.
Updating the permissions of a space root or a public link share is currently
not implemeted.
2023-12-08 10:55:12 +01:00
Florian Schade
170021a38e chore: go version bump to 1.21 2023-11-23 14:52:01 +01:00
Florian Schade
40d356c56b enhancement: make use of unifiedrole from the graph invitation endpoint, applying multiple roles works and result in a merged cs3 permission set (#7751) 2023-11-23 14:18:03 +01:00
Florian Schade
ad57d59738 enhancement: add graph invite endpoint (#7687) 2023-11-17 16:36:54 +01:00