-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[full-ci] Add support for a public link permission #8541
Conversation
Results for e2e-tests oC10 https://drone.owncloud.com/owncloud/web/33338/11/1 💥 To see the trace, please open the link in the console ...
npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/33338/tracing/alice-can-share-this-weeks-meal-plan-with-all-parents-alice-2023-3-6-01-58-11.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/33338/tracing/alice-can-share-this-weeks-meal-plan-with-all-parents-brian-2023-3-6-01-58-40.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/33338/tracing/alice-can-share-this-weeks-meal-plan-with-all-parents-carol-2023-3-6-01-58-46.zip |
e966f63
to
9e5cf26
Compare
Results for acceptance oCIS https://drone.owncloud.com/owncloud/web/33332/69/1 💥 The oCISSharingPublic2 tests pipeline failed. The build has been cancelled. |
2e6c442
to
858e6ef
Compare
858e6ef
to
1fd71f2
Compare
Kudos, SonarCloud Quality Gate passed! |
try { | ||
const { | ||
data: { permissions } | ||
} = await httpClient.post('/api/v0/settings/permissions-list', { account_uuid: user.uuid }) | ||
return permissions || [] | ||
return permissions || oC10DefaultPermissions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not keep the fallback to []
if the call succeeds? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the call actually succeeds with oC10. It just doesn't return permissions the way we want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Add support for the public link permission
PublicLink.Write.all
. Users without this permission won't be able to create public links (except for oC10 instances where this permission is being set implicitly).Related Issue
Screenshots (if appropriate):
Types of changes