-
Notifications
You must be signed in to change notification settings - Fork 784
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
Conversation
d28ca51
to
699e886
Compare
@@ -28,7 +28,7 @@ enum SharePermission { | |||
SharePermissionCreate = 4, | |||
SharePermissionDelete = 8, | |||
SharePermissionShare = 16, | |||
SharePermissionDefault = 1 << 30 | |||
SharePermissionDefault = 31 |
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.
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.
699e886
to
e5803fc
Compare
- 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>
e5803fc
to
d7a1367
Compare
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.
Looks good to me, approving as discussed in the chat :)
/backport to stable-2.6 |
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:
client: