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

Display the correct default permissions when creating a share. #2168

Merged
merged 1 commit into from
Jul 9, 2020

Conversation

camilasan
Copy link
Member

@camilasan camilasan commented Jul 7, 2020

  • The default displayed was not in sync with the server because
    the client was setting permissions when creating a share while it
    should get the default permissions from the server to display it to the
    user first.

server:
server

client:
client

@camilasan camilasan requested a review from er-vin July 7, 2020 18:48
@camilasan camilasan added this to the 2.6.5 milestone Jul 7, 2020
@camilasan camilasan force-pushed the display-default-permissions-share branch from d28ca51 to 699e886 Compare July 7, 2020 18:57
@camilasan camilasan requested a review from misch7 July 7, 2020 19:04
@@ -28,7 +28,7 @@ enum SharePermission {
SharePermissionCreate = 4,
SharePermissionDelete = 8,
SharePermissionShare = 16,
SharePermissionDefault = 1 << 30
SharePermissionDefault = 31
Copy link
Member

Choose a reason for hiding this comment

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

I wonder, isn't it badly named now? From your description the default can be 31 or 1 depending if it's a public share or not.

I don't know that area well though, so it might just be me being confused.

@camilasan camilasan force-pushed the display-default-permissions-share branch from 699e886 to e5803fc Compare July 8, 2020 16:13
- The default displayed was not in sync with the server because
the client was setting permissions when creating a share while it
should get the default permissions from the server to display it to the
user first.

Signed-off-by: Camila <hello@camila.codes>
@camilasan camilasan force-pushed the display-default-permissions-share branch from e5803fc to d7a1367 Compare July 8, 2020 16:18
Copy link
Member

@misch7 misch7 left a comment

Choose a reason for hiding this comment

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

Looks good to me, approving as discussed in the chat :)

@camilasan camilasan linked an issue Jul 8, 2020 that may be closed by this pull request
@misch7 misch7 merged commit 4fec77e into master Jul 9, 2020
@misch7 misch7 deleted the display-default-permissions-share branch July 9, 2020 03:19
@misch7
Copy link
Member

misch7 commented Jul 9, 2020

/backport to stable-2.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update share dialog with the latest share option in the server
3 participants