diff --git a/admin/survey/SurveyAdminAjax.php b/admin/survey/SurveyAdminAjax.php
index c11a68698..c68bcdfe9 100644
--- a/admin/survey/SurveyAdminAjax.php
+++ b/admin/survey/SurveyAdminAjax.php
@@ -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'].' '.$site_url.' '.$lang['srv_dostopmail_5'].' ('.$email.').';
// 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 .= '
'.$lang['srv_dostopmail_7'];
$content .= ' '.$lang['edit_data'].' ';
$content .= $lang['srv_dostopmail_72'];
diff --git a/lang/1.php b/lang/1.php
index 444f225e3..53c8ec517 100644
--- a/lang/1.php
+++ b/lang/1.php
@@ -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.",
diff --git a/lang/2.php b/lang/2.php
index ccaf4e090..d024ba885 100644
--- a/lang/2.php
+++ b/lang/2.php
@@ -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.",