* Fix bug #14841.
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
.group-item {display: block; width: 100px; float: left; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
|
||||
.group-item {display: block; width: 100px; float: left; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
|
||||
.table th {vertical-align: top;}
|
||||
.main-table tbody>tr>td {border-bottom: 0px;}
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<?php endforeach;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($config->systemMode == 'new'):?>
|
||||
<?php if($config->systemMode == 'new' and !empty($outsideUsers)):?>
|
||||
<tr>
|
||||
<th class='w-140px'>
|
||||
<div class="checkbox-primary checkbox-inline checkbox-right check-all">
|
||||
|
||||
@@ -1411,13 +1411,31 @@ class project extends control
|
||||
}
|
||||
|
||||
$group = $this->group->getById($groupID);
|
||||
$project = $this->project->getByID($group->project);
|
||||
$groupUsers = $this->group->getUserPairs($groupID);
|
||||
$allUsers = $this->loadModel('dept')->getDeptUserPairs($deptID);
|
||||
$otherUsers = array_diff_assoc($allUsers, $groupUsers);
|
||||
|
||||
if($project->acl != 'open')
|
||||
{
|
||||
$canViewMembers = $this->dao->select('account')->from(TABLE_USERVIEW)->where("CONCAT(',', projects, ',')")->like("%,$group->project,%")->fetchPairs();
|
||||
foreach($otherUsers as $account => $otherUser)
|
||||
{
|
||||
if(!isset($canViewMembers[$account])) unset($otherUsers[$account]);
|
||||
}
|
||||
}
|
||||
|
||||
if($this->config->systemMode == 'new')
|
||||
{
|
||||
$outsideUsers = $this->loadModel('user')->getPairs('outside|noclosed|noletter|noempty');
|
||||
if($project->acl != 'open')
|
||||
{
|
||||
foreach($outsideUsers as $account => $outsideUser)
|
||||
{
|
||||
if(!isset($canViewMembers[$account])) unset($outsideUsers[$account]);
|
||||
}
|
||||
}
|
||||
|
||||
$this->view->outsideUsers = array_diff_assoc($outsideUsers, $groupUsers);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user