Skip to content
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

[stable27] Consider admin defaults when creating shares #43279

Merged
merged 3 commits into from
Feb 4, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Feb 1, 2024

Backport of #43024

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove [skip ci] tag

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@nfebe nfebe marked this pull request as ready for review February 1, 2024 23:46
Copy link
Contributor

@emoral435 emoral435 left a comment

Choose a reason for hiding this comment

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

I also see that get shouldAlwaysShowUnique() is also missing its changes here - is it not needed in this case? It does not seem so, as its not here in the current stable27 master, just making sure though.

apps/files_sharing/src/services/ConfigService.js Outdated Show resolved Hide resolved
@nfebe nfebe force-pushed the backport/43024/stable27 branch 3 times, most recently from 82d9c6d to b6e9685 Compare February 3, 2024 21:51
@nfebe
Copy link
Contributor

nfebe commented Feb 3, 2024

/compile

nfebe added 2 commits February 4, 2024 11:44
The current share logic always uses the default `BUNDLED_PERMISSIONS.ALL`
which includes everything.

This commit updates share creation logic to use `defaultPermissions` if set
by admin for the creation of new shares.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
- Remove redundant initial state added

- Call `getCapabilities()` in share config file.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
@nfebe nfebe force-pushed the backport/43024/stable27 branch from 0b91dde to 0803909 Compare February 4, 2024 10:55
@nfebe
Copy link
Contributor

nfebe commented Feb 4, 2024

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nfebe
Copy link
Contributor

nfebe commented Feb 4, 2024

@susnux please look at this one, if around, thanks...

@susnux susnux merged commit e536dae into stable27 Feb 4, 2024
37 checks passed
@susnux susnux deleted the backport/43024/stable27 branch February 4, 2024 17:45
This was referenced Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants