-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[stable10] Backport of Fix the share permissions evaluation #34473
Conversation
When user tries to access "Shared with you" to know the list of files/folders shared with the user, the share tab for the files or folder are having an issue. When the group(s) to which the user belong is excluded from sharing, the share options appear in the tab. This change tries to fix the issue. Signed-off-by: Sujith H <sharidasan@owncloud.com>
fbc5b08
to
cb418e4
Compare
Codecov Report
@@ Coverage Diff @@
## stable10 #34473 +/- ##
===============================================
- Coverage 63.57% 45.2% -18.38%
===============================================
Files 1265 116 -1149
Lines 75314 11482 -63832
Branches 1291 1291
===============================================
- Hits 47884 5190 -42694
+ Misses 27050 5912 -21138
Partials 380 380
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## stable10 #34473 +/- ##
==============================================
+ Coverage 63.57% 63.58% +<.01%
- Complexity 19146 19147 +1
==============================================
Files 1265 1265
Lines 75314 75317 +3
Branches 1291 1291
==============================================
+ Hits 47884 47887 +3
Misses 27050 27050
Partials 380 380
Continue to review full report at Codecov.
|
Original PR: #34250 |
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.
👍
wait: 2 - developing ? is anything missing ? @sharidas |
😢 Nah. It was a mistake to have the labelled wrongly. Nothing is missing here. I have copied the code, and not cherry-picked. Because while creating this PR, the original PR was not merged. |
When user tries to access "Shared with you"
to know the list of files/folders shared with
the user, the share tab for the files or folder
are having an issue. When the group(s) to which
the user belong is excluded from sharing, the
share options appear in the tab. This change
tries to fix the issue.
Signed-off-by: Sujith H sharidasan@owncloud.com
Description
Share a folder/file to create guest user. And then enable
can share
. After this try to login to the guest user. EnableExclude groups from sharing
and addguest_app
in the text box. The guest usersShared with you
would show the the share side bar. The panel will show auto complete. This is the problem. And this change set tries to avoid the same. When groupguest_app
is added to be excluded, the resharing should be blocked for the users ofguest_app
, even ifcan share
is checked ( as explained above).Related Issue
Motivation and Context
The
Shared with you
section should not show the share side bar ifguest_app
group is added to theExclude groups from sharing
andcan share
enabled in the file/folder shared to the guest user ( while creating guest user).How Has This Been Tested?
can share
to the shared file/folderguest_app
to theExclude groups from sharing
in the sharing page ( in admin settings )Shared with you
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: