-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29427 from nextcloud/fix/user_status_enumeration_22
Backport #29260: Respect user enumeration settings in user status lists
- Loading branch information
Showing
6 changed files
with
213 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
build/integration/collaboration_features/user_status.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Feature: user_status | ||
Background: | ||
Given using api version "2" | ||
And user "user0" exists | ||
And user "user0" has status "dnd" | ||
|
||
Scenario: listing recent user statuses with default settings | ||
Then user statuses for "admin" list "user0" with status "dnd" | ||
|
||
Scenario: empty recent user statuses with disabled/limited user enumeration | ||
When parameter "shareapi_allow_share_dialog_user_enumeration" of app "core" is set to "no" | ||
Then user statuses for "admin" are empty | ||
When parameter "shareapi_allow_share_dialog_user_enumeration" of app "core" is set to "yes" | ||
When parameter "shareapi_restrict_user_enumeration_to_group" of app "core" is set to "yes" | ||
Then user statuses for "admin" are empty | ||
When parameter "shareapi_restrict_user_enumeration_to_group" of app "core" is set to "no" | ||
When parameter "shareapi_restrict_user_enumeration_to_phone" of app "core" is set to "yes" | ||
Then user statuses for "admin" are empty | ||
When parameter "shareapi_restrict_user_enumeration_to_phone" of app "core" is set to "no" | ||
Then user statuses for "admin" list "user0" with status "dnd" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
* @author Sergio Bertolín <[email protected]> | ||
* @author Thomas Müller <[email protected]> | ||
* @author Vincent Petry <[email protected]> | ||
* @author Jonas Meurer <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* | ||
|