Skip to content

Commit

Permalink
Chair can "act as" a CDB-only user.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Sep 15, 2023
1 parent ca56d33 commit 7f5b51a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -664,10 +664,11 @@ private function actas_user($x) {

// new account must exist
$u = $this->conf->user_by_email($email);
if (!$u
&& validate_email($email)
&& $this->conf->opt("debugShowSensitiveEmail")) {
$u = Contact::make_email($this->conf, $email)->store();
if (!$u && validate_email($email)) {
$u = $this->conf->cdb_user_by_email($email);
if (!$u && $this->conf->opt("debugShowSensitiveEmail")) {
$u = Contact::make_email($this->conf, $email)->store();
}
}
if (!$u) {
return $this;
Expand Down

0 comments on commit 7f5b51a

Please sign in to comment.