Skip to content

Commit

Permalink
fix: installing plugin causes new account notification email to not g…
Browse files Browse the repository at this point in the history
…et sent to admins
  • Loading branch information
spmeesseman committed Aug 11, 2019
1 parent b569be4 commit 3b1d25c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
8 changes: 1 addition & 7 deletions SecurityExtend.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,7 @@ function securityextend_bugnote_data($p_event, $p_bugnote_text, $p_bug_id )

function securityextend_user_create($p_event, $p_user_id)
{
$t_logged_in_user_access_level = access_get_global_level();

if ($t_logged_in_user_access_level < ADMINISTRATOR) {
se_block_account($p_user_id);
}

return $p_user_id;
se_block_account($p_user_id);
}


Expand Down
6 changes: 1 addition & 5 deletions core/securityextend_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ function se_block_account($p_user_id)
return;
}

if( access_get_global_level() > auth_signup_access_level() ) {
return;
}

if (se_is_email_forbidden($t_user_email))
if (se_is_email_forbidden($t_user_email))
{
log_event(LOG_PLUGIN, "SecurityExtend: Forbidden email: %s", $t_user_email);
log_event(LOG_PLUGIN, "SecurityExtend: Delete userid: %d", (int)$p_user_id);
Expand Down

0 comments on commit 3b1d25c

Please sign in to comment.