Skip to content

fix(autocomplete): respect privacy settings for sharing#12715

Open
hamza221 wants to merge 1 commit intomainfrom
fix/respect-sharing-enumeration
Open

fix(autocomplete): respect privacy settings for sharing#12715
hamza221 wants to merge 1 commit intomainfrom
fix/respect-sharing-enumeration

Conversation

@hamza221
Copy link
Copy Markdown
Contributor

@hamza221 hamza221 commented Apr 13, 2026

How to test:

  1. Admin settings -> sharing -> Privacy settings for sharing
  2. edit the settings and make sure that both :
  • Adress autocompletion in composer
  • @ the mention shortcut in composer

respect them

Signed-off-by: Hamza <hamzamahjoubi221@gmail.com>
@@ -262,14 +281,14 @@ private function doSearch(string $term, array $fields, bool $strictSearch) : arr
* @param string $mailAddr
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now phpdoc is out of sync. either have both params or preferrably drop both if there is no additional info

Comment on lines +59 to +61
->with('', $fn)
->willReturn($contacts);
$result = $this->service->run($fn, $email);
$result = $this->service->run('', $fn, $email);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you make this meaningful?

]);

$result = $this->check->run('Sender Name', 'sender@example.com');
$result = $this->check->run('', 'Sender Name', 'sender@example.com');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same for these

];

$actual = $this->contactsIntegration->getContactsWithName($name);
$actual = $this->contactsIntegration->getContactsWithName('', $name);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same for these

@hamza221
Copy link
Copy Markdown
Contributor Author

@ChristophWurst I've been actually wondering if we want to always allow full sab access to phishing detection check? maybe without exposing the actual contact ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants