-
Notifications
You must be signed in to change notification settings - Fork 806
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
Implement missing share settings #5622
Conversation
49bedc7
to
dae5917
Compare
53eec17
to
263f170
Compare
c2df823
to
69fd533
Compare
/backport to stable-3.8 |
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.
A couple of small comments left from my previous review, though they are nitpicks
69fd533
to
6cd3d4a
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.
mostly questions
sometime the code is a bit hard to follow between what comes from the network jobs and what comes from user actions
37cd5dc
to
d2290c7
Compare
src/gui/filedetails/sharemodel.cpp
Outdated
return _isSecureFileDropSupportedFolder && share->getPermissions().testFlag(OCC::SharePermission::SharePermissionCreate); | ||
case CurrentPermissionModeRole: { | ||
if (share->getPermissions() == OCC::SharePermission::SharePermissionCreate) { | ||
return static_cast<int>(SharePermissionsMode::ModeFileDropOnly); |
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 had missed that in my first review
should be
return QVariand::fromValue(SharePermissionsMode::ModeFileDropOnly);
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.
see inline comments
src/gui/filedetails/sharemodel.cpp
Outdated
if (share->getPermissions() == OCC::SharePermission::SharePermissionCreate) { | ||
return static_cast<int>(SharePermissionsMode::ModeFileDropOnly); | ||
} else if ((share->getPermissions() & SharePermissionRead) && (share->getPermissions() & SharePermissionUpdate)) { | ||
return static_cast<int>(SharePermissionsMode::ModeUploadAndEditing); |
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.
same
src/gui/filedetails/sharemodel.cpp
Outdated
} else if ((share->getPermissions() & SharePermissionRead) && (share->getPermissions() & SharePermissionUpdate)) { | ||
return static_cast<int>(SharePermissionsMode::ModeUploadAndEditing); | ||
} else { | ||
return static_cast<int>(SharePermissionsMode::ModeViewOnly); |
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.
same
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.
sounds good
did not do any local tests during review
6730c44
to
40d26fd
Compare
Signed-off-by: alex-z <blackslayer4@gmail.com>
40d26fd
to
f39a090
Compare
SonarCloud Quality Gate failed. |
AppImage file: nextcloud-PR-5622-f39a0903c5ba88c8df09262349aad38e9dc8244d-x86_64.AppImage |
BEFORE
AFTER