[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 |
|
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 sharingand addguest_appin the text box. The guest usersShared with youwould 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_appis added to be excluded, the resharing should be blocked for the users ofguest_app, even ifcan shareis checked ( as explained above).Related Issue
Motivation and Context
The
Shared with yousection should not show the share side bar ifguest_appgroup is added to theExclude groups from sharingandcan shareenabled in the file/folder shared to the guest user ( while creating guest user).How Has This Been Tested?
can shareto the shared file/folderguest_appto theExclude groups from sharingin the sharing page ( in admin settings )Shared with youScreenshots (if appropriate):
Types of changes
Checklist:
Open tasks: