Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Forwarded from: liferay-echo#4885 (Took 1
ci:forward
attempt in 57 seconds)Console
@jonathanmccann
@liferay-echo
Original pull request comment:
Prior to https://issues.liferay.com/browse/LPS-128817 groups were filtered using the following logic:
https://github.com/liferay/liferay-portal-ee/blob/fix-pack-dxp-12-7210/modules/apps/site/site-browser-web/src/main/java/com/liferay/site/browser/web/internal/display/context/SiteBrowserDisplayContext.java#L398-L404
After LPS-128817 filtering only took place if:
filterManageableGroups
is trueusersGroups
is supplied to the group searchThis change in behavior allowed all sites to be returned when a user was adding another user to a site (https://issues.liferay.com/browse/LPS-134264).
The changes in this pull attempt to bring back the previous behavior by checking for the "Assign Members" permission.
Please let me know if there are any questions or if there are any flaws in the logic. Thank you.
✔️ ci:test:sf - 1 out of 1 jobs passed in 3 minutes
Click here for more details.
Base Branch:
Branch Name: master
Branch GIT ID: 5b0dd2a25496279a49af5a16f62f9170e63663ac
Sender Branch:
Branch Name: LPS-134264
1 out of 1jobs PASSEDBranch GIT ID: 648dba95ab0592364c4e9163dcda4277b7991345
1 Successful Jobs:
For more details click here.
✔️ ci:test:stable - 10 out of 10 jobs passed
✔️ ci:test:relevant - 23 out of 24 jobs passed in 3 hours 32 minutes
Click here for more details.
Base Branch:
Branch Name: master
Branch GIT ID: 5b0dd2a25496279a49af5a16f62f9170e63663ac
Upstream Comparison:
Branch GIT ID: 7cd2901e5c4f9c48b954eb82b675e9534a7434ca
Jenkins Build URL: Acceptance Upstream DXP (master) #2002
ci:test:stable - 10 out of 10 jobs PASSED
10 Successful Jobs:
ci:test:relevant - 22 out of 24 jobs PASSED
2 Failed Jobs:
test-portal-acceptance-pullrequest(master)test-portal-acceptance-pullrequest-batch(master)/unit-jdk8/022 Successful Jobs:
For more details click here.
This pull contains no unique failures.
Failures in common with acceptance upstream results at 7cd2901:
test-portal-acceptance-pullrequest-batch(master)/unit-jdk8/0
Job Results:
2638 Tests Passed.
1 Test Failed.