Skip to content

Conversation

@nfebe
Copy link
Contributor

@nfebe nfebe commented Jan 18, 2026

Remove PERMISSION_SHARE from bundled permissions for ALL and ALL_FILE. Update quick share selector to consistently strip share permission when comparing, ensuring backwards compatibility with existing shares.

@nfebe nfebe requested a review from a team as a code owner January 18, 2026 17:34
@nfebe nfebe added the 3. to review Waiting for reviews label Jan 18, 2026
@nfebe nfebe requested review from artonge, susnux and szaimen and removed request for a team January 18, 2026 17:34
@nfebe nfebe added feature: sharing pending documentation This pull request needs an associated documentation update labels Jan 18, 2026
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

@nfebe
Copy link
Contributor Author

nfebe commented Jan 19, 2026

/compile

@nfebe nfebe force-pushed the fix/remove-share-permission-from-allow-editing branch from 02787b3 to 1ed5d6a Compare January 19, 2026 10:13
@nfebe
Copy link
Contributor Author

nfebe commented Jan 19, 2026

/compile /

@nfebe nfebe enabled auto-merge January 19, 2026 12:35
@nfebe nfebe disabled auto-merge January 19, 2026 16:28
@nfebe nfebe force-pushed the fix/remove-share-permission-from-allow-editing branch from 32c397e to 77de5d4 Compare January 19, 2026 16:29
@nfebe
Copy link
Contributor Author

nfebe commented Jan 19, 2026

/compile /

@nfebe nfebe force-pushed the fix/remove-share-permission-from-allow-editing branch from 7713abf to 168ca4a Compare January 20, 2026 11:50
@nfebe
Copy link
Contributor Author

nfebe commented Jan 20, 2026

/compile /

@nfebe nfebe enabled auto-merge January 20, 2026 11:50
@nfebe nfebe force-pushed the fix/remove-share-permission-from-allow-editing branch from 013e710 to 1a0943c Compare January 20, 2026 16:05
@nfebe
Copy link
Contributor Author

nfebe commented Jan 20, 2026

/compile /

nfebe added 2 commits January 20, 2026 19:30
Remove PERMISSION_SHARE from bundled permissions for ALL and ALL_FILE.
Update quick share selector to consistently strip share permission
when comparing, ensuring backwards compatibility with existing shares.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
Handle backward compatibility when config.defaultPermissions includes
the SHARE permission (value 31) which was previously part of
BUNDLED_PERMISSIONS.ALL. Now that ALL no longer includes SHARE, the
comparison must strip SHARE before checking against bundled permissions.

This fixes an issue where the Advanced Settings section would be
auto-expanded for new shares, causing a toggle to close it instead
of opening it.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe nfebe force-pushed the fix/remove-share-permission-from-allow-editing branch from ca68b1b to cb0f011 Compare January 20, 2026 18:30
@nfebe
Copy link
Contributor Author

nfebe commented Jan 20, 2026

/compile /

Tests that access elements inside the Advanced Settings section
(hide download, share label, grid view, etc.) must first click
"Advanced settings" to expand it. Previously these tests relied on
buggy auto-expand behavior that occurred when permissions didn't
match bundled values.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe nfebe force-pushed the fix/remove-share-permission-from-allow-editing branch from cb0f011 to 80ab683 Compare January 20, 2026 18:40
@nfebe
Copy link
Contributor Author

nfebe commented Jan 20, 2026

/compile /

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nfebe nfebe merged commit 0e515db into master Jan 20, 2026
181 of 185 checks passed
@nfebe nfebe deleted the fix/remove-share-permission-from-allow-editing branch January 20, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews feature: sharing pending documentation This pull request needs an associated documentation update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants