* adjust task #49362 and check priv.

This commit is contained in:
王怡栋
2022-03-01 11:23:44 +08:00
parent fb48581a76
commit 44be255e67
4 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -67,7 +67,7 @@
<tr>
<td>
<?php
if(common::hasPriv('user', 'view'))
if(common::hasPriv('user', 'view') and common::hasPriv('my', 'team'))
{
$link = isset($deptUsers[$member->userID]) ? $this->createLink('user', 'view', "userID={$member->userID}") : "javascript: alert(noAccess);";
echo html::a($link, $member->realname, '', 'data-app="system"');