execution->team;?>
@@ -66,7 +67,15 @@
userID}", $member->realname)) print $member->realname;
+ if(common::hasPriv('user', 'view'))
+ {
+ $link = isset($deptUsers[$member->userID]) ? $this->createLink('user', 'view', "userID={$member->userID}") : "javascript:checkUserDept();";
+ echo html::a($link, $member->realname, '', 'data-app="system"');
+ }
+ else
+ {
+ echo $member->realname;
+ }
$memberHours = $member->days * $member->hours;
$totalHours += $memberHours;
?>
diff --git a/module/user/control.php b/module/user/control.php
index 9c7094011b..b01fafe60d 100644
--- a/module/user/control.php
+++ b/module/user/control.php
@@ -80,7 +80,7 @@ class user extends control
$todos = $this->todo->getList($type, $account, $status, 0, $pager, $sort);
$date = (int)$type == 0 ? helper::today() : $type;
$users = $this->loadModel('dept')->getDeptUserPairs($this->app->user->dept, 'useid');
- if(!isset($users[$userID])) die(js::error($this->lang->notFound) . js::locate('back'));
+ if(!isset($users[$userID])) die(js::error($this->lang->user->error->noAccess) . js::locate('back'));
/* set menus. */
$this->view->userList = $this->user->setUserList($users, $userID);
diff --git a/module/user/lang/de.php b/module/user/lang/de.php
index 61208b67fd..2cd5990625 100644
--- a/module/user/lang/de.php
+++ b/module/user/lang/de.php
@@ -204,6 +204,7 @@ $lang->user->error->dangerPassword = "ID %s,Passwords cannot be used with [%s]
$lang->user->error->verifyPassword = "Verifikation fehlgeschlagen. Bitte geben Sie ihr Loginpasswort ein.";
$lang->user->error->originalPassword = "Altes Passwort ist falsch.";
+$lang->user->error->noAccess = "This user is not from your department. You have no access to this user information."
$lang->user->contactFieldList['phone'] = $lang->user->phone;
$lang->user->contactFieldList['mobile'] = $lang->user->mobile;
@@ -242,4 +243,4 @@ $lang->user->noticeResetFile = "Kontaktieren Sie den Administrator um Ihr Pa
";
$lang->user->notice4Safe = "Warning: Weak password of one click package detected";
$lang->user->process4DIR = "It is detected that you may be using the one click installation package environment. Other sites in the environment are still using simple passwords. For security reasons, if you do not use other sites, please handle them in time. Delete or rename the %s directory. Visit: https://www.zentao.pm/book/zentaomanual/fix-weak-password-564.html";
-$lang->user->process4DB = "It is detected that you may be using the one click installation package environment. Other sites in the environment are still using simple passwords. For security reasons, if you do not use other sites, please handle them in time. Please login database and modify password field of zt_user table of %s database. Visit: https://www.zentao.pm/book/zentaomanual/fix-weak-password-564.html";
\ No newline at end of file
+$lang->user->process4DB = "It is detected that you may be using the one click installation package environment. Other sites in the environment are still using simple passwords. For security reasons, if you do not use other sites, please handle them in time. Please login database and modify password field of zt_user table of %s database. Visit: https://www.zentao.pm/book/zentaomanual/fix-weak-password-564.html";
diff --git a/module/user/lang/en.php b/module/user/lang/en.php
index fb163ee378..013880de38 100644
--- a/module/user/lang/en.php
+++ b/module/user/lang/en.php
@@ -207,6 +207,7 @@ $lang->user->error->dangerPassword = "ID %s,Passwords cannot be used with [%s]
$lang->user->error->verifyPassword = "Verification failed. Please enter your Login Password.";
$lang->user->error->originalPassword = "Old password is incorrect.";
$lang->user->error->companyEmpty = "Company name must be not empty.";
+$lang->user->error->noAccess = "This user is not from your department. You have no access to this user information."
$lang->user->contactFieldList['phone'] = $lang->user->phone;
$lang->user->contactFieldList['mobile'] = $lang->user->mobile;
diff --git a/module/user/lang/fr.php b/module/user/lang/fr.php
index d00fa4eb48..819fe3c05f 100644
--- a/module/user/lang/fr.php
+++ b/module/user/lang/fr.php
@@ -204,6 +204,7 @@ $lang->user->error->dangerPassword = "ID %s,Les mots de passe ne peuvent pas u
$lang->user->error->verifyPassword = "Vérification en échec. Entrez votre Mot de Passe de Connexion.";
$lang->user->error->originalPassword = "Ancien Mot de Passe incorrect.";
+$lang->user->error->noAccess = "This user is not from your department. You have no access to this user information."
$lang->user->contactFieldList['phone'] = $lang->user->phone;
$lang->user->contactFieldList['mobile'] = $lang->user->mobile;
@@ -242,4 +243,4 @@ $lang->user->noticeResetFile = "