Urednike, ki se niso registrirani lahko po novem dodaja samo admin (prej jih je lahko tudi manager)
This commit is contained in:
parent
375117a263
commit
0d9a1769ef
@ -6302,8 +6302,8 @@ class SurveyAdminAjax {
|
||||
$id = 0;
|
||||
$sqlu = sisplet_query("SELECT id FROM users WHERE email='$email'");
|
||||
|
||||
// Ce user, ki ga dodajamo, se ne obstaja, ga ustvarimo - PO NOVEM SAMO CE SMO ADMIN ALI MANAGER
|
||||
if (mysqli_num_rows($sqlu) == 0 && ($admin_type == 0 || $admin_type == 1)) {
|
||||
// Ce user, ki ga dodajamo, se ne obstaja, ga ustvarimo - PO NOVEM SAMO CE SMO ADMIN
|
||||
if (mysqli_num_rows($sqlu) == 0 && $admin_type == 0) {
|
||||
$s = sisplet_query("INSERT INTO users (name, surname, email, pass, type, when_reg, came_from) VALUES ('$name', '$surnname', '$email', '" .base64_encode((hash(SHA256, '' .$pass_salt))) ."', '3', DATE_FORMAT(NOW(), '%Y-%m-%d'), '1')");
|
||||
$id = mysqli_insert_id($GLOBALS['connect_db']);
|
||||
}
|
||||
@ -6333,7 +6333,7 @@ class SurveyAdminAjax {
|
||||
'.$lang['srv_dostopmail_4'].' <a style="color:#1e88e5 !important; text-decoration:none !important;" href="'.$site_url.'">'.$site_url.'</a> '.$lang['srv_dostopmail_5'].' (<a style="color:#1e88e5 !important; text-decoration:none !important;" href="mailto:'.$email.'">'.$email.'</a>).';
|
||||
|
||||
// Ce email se ni registriran, dodamo dodatno obvestilo
|
||||
if(mysqli_num_rows($sqlu) == 0 && ($admin_type == 0 || $admin_type == 1)){
|
||||
if(mysqli_num_rows($sqlu) == 0 && $admin_type == 0){
|
||||
$content .= '<br /><br />'.$lang['srv_dostopmail_7'];
|
||||
$content .= ' <a style="color:#1e88e5 !important; text-decoration:none !important;" href="'.$site_url.'/admin/survey/index.php?a=nastavitve&m=global_user_myProfile">'.$lang['edit_data'].'</a> ';
|
||||
$content .= $lang['srv_dostopmail_72'];
|
||||
|
@ -2055,7 +2055,7 @@ $lang = array (
|
||||
"srv_dostop_adduserstxt_end" => "Uporabniki bodo o novem dostopu avtomatsko obveščeni na e-mail.",
|
||||
"srv_dostop_addusers_button" => "Dodaj dostope in pošlji obvestila",
|
||||
"srv_dostop_addusers_error1" => "Vnešeni email naslov ni veljaven!",
|
||||
"srv_dostop_addusers_error2" => "Uporabnik s tem email naslovom ne obstaja!",
|
||||
"srv_dostop_addusers_error2" => "Uporabnik s tem e-poštnim naslovom še ni registriran!",
|
||||
"srv_dostop_addusers_error3" => "Prišlo je do napake pri pošiljanju obvestila!",
|
||||
"srv_dostop_addusers_error4" => "Uporabnik že ima dostop do urejanja ankete.",
|
||||
"srv_dostop_addusers_success" => "Uspešno dodan dostop in poslano sporočilo.",
|
||||
|
@ -2042,7 +2042,7 @@ $lang = array (
|
||||
"srv_dostop_adduserstxt_end" => "Users will be automatically notified by e-mail.",
|
||||
"srv_dostop_addusers_button" => "Grant access and send notifications",
|
||||
"srv_dostop_addusers_error1" => "Email address is not valid!",
|
||||
"srv_dostop_addusers_error2" => "User with this email address does not exist!",
|
||||
"srv_dostop_addusers_error2" => "User with this email address does not have an account!",
|
||||
"srv_dostop_addusers_error3" => "There was an error sending the notification !",
|
||||
"srv_dostop_addusers_error4" => "The user already has access to the survey.",
|
||||
"srv_dostop_addusers_success" => "Access added and notification successfully sent.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user