* adjust for check priv.

This commit is contained in:
王怡栋
2022-03-01 11:01:39 +08:00
parent 0e85a489c3
commit 80ffe8f352
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
<script>
$('#mainMenu .btn-toolbar > a[href*="bug"], a[href*="testtask"], a[href*="testcase"], a[href*="issue"], a[href*="risk"], a[href*="requirement"]').remove();
<?php if($this->config->edition != 'open'):?>
<?php if($this->config->edition != 'open' and common::hasPriv('user', 'todocalendar')):?>
$('#mainMenu .btn-toolbar > a:first').attr('href', createLink('user', 'todocalendar', 'userID=<?php echo $user->id?>'));
<?php endif;?>
</script>

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"');