nextcloud/apps
Jonas Meurer 50a25748c0
Respect user enumeration settings in user status lists
So far, the functions to find user statuses listed didn't respect user
enumeration settings (`shareapi_allow_share_dialog_user_enumeration`
and `shareapi_restrict_user_enumeration_to_group` core app settings).

Fix this privacy issue by returning an empty list in case
`shareapi_allow_share_dialog_user_enumeration` is unset or
`shareapi_restrict_user_enumeration_to_group` is set.

In the long run, we might want to return users from common groups if
`shareapi_restrict_user_enumeration_to_group` is set. It's complicated
to implement this in a way that scales, though. See the discussion at
https://github.com/nextcloud/server/pull/27879#pullrequestreview-753655308
for details.

Also, don't register the user_status dashboard widget at all if
`shareapi_allow_share_dialog_user_enumeration` is unset or
`shareapi_restrict_user_enumeration_to_group` is set.

Fixes: #27122

Signed-off-by: Jonas Meurer <jonas@freesources.org>
2021-10-25 10:10:14 +02:00
..
accessibility [tx-robot] updated from transifex 2021-10-04 02:26:47 +00:00
admin_audit [tx-robot] updated from transifex 2021-10-10 02:21:43 +00:00
cloud_federation_api [tx-robot] updated from transifex 2021-10-25 02:22:48 +00:00
comments [tx-robot] updated from transifex 2021-10-07 02:26:00 +00:00
contactsinteraction [tx-robot] updated from transifex 2021-10-25 02:22:48 +00:00
dashboard [tx-robot] updated from transifex 2021-10-21 02:24:44 +00:00
dav Merge pull request #29387 from nextcloud/backport/28997/stable20 2021-10-25 08:56:33 +02:00
encryption [tx-robot] updated from transifex 2021-10-23 02:23:01 +00:00
federatedfilesharing [tx-robot] updated from transifex 2021-10-21 02:24:44 +00:00
federation [tx-robot] updated from transifex 2021-10-16 02:23:49 +00:00
files [tx-robot] updated from transifex 2021-10-25 02:22:48 +00:00
files_external [tx-robot] updated from transifex 2021-10-23 02:23:01 +00:00
files_sharing [tx-robot] updated from transifex 2021-10-22 02:22:27 +00:00
files_trashbin [tx-robot] updated from transifex 2021-10-23 02:23:01 +00:00
files_versions [tx-robot] updated from transifex 2021-10-23 02:23:01 +00:00
lookup_server_connector Do not try to contact lookup server if not needed 2021-04-29 09:23:02 +02:00
oauth2 [tx-robot] updated from transifex 2021-10-07 02:26:00 +00:00
provisioning_api [tx-robot] updated from transifex 2021-10-23 02:23:01 +00:00
settings [tx-robot] updated from transifex 2021-10-25 02:22:48 +00:00
sharebymail [tx-robot] updated from transifex 2021-10-20 02:43:31 +00:00
systemtags [tx-robot] updated from transifex 2021-09-22 02:27:08 +00:00
testing Make sure columns with an empty default are nullable for Oracle 2020-11-12 12:57:51 +01:00
theming Don't setup the filesystem to check for a favicon we don't use anyway 2021-10-13 20:32:20 +00:00
twofactor_backupcodes Bump vue and vue-template-compiler 2021-07-28 08:58:23 +02:00
updatenotification [tx-robot] updated from transifex 2021-09-09 02:28:25 +00:00
user_ldap [tx-robot] updated from transifex 2021-10-23 02:23:01 +00:00
user_status Respect user enumeration settings in user status lists 2021-10-25 10:10:14 +02:00
weather_status [tx-robot] updated from transifex 2021-10-02 02:26:43 +00:00
workflowengine fixes an undefined index when getAccessList returns an empty array 2021-10-23 12:53:23 +00:00