Better: Don't share with the user himself or the actual owner

This commit is contained in:
Karsten Heiken
2011-09-28 16:30:09 +02:00
parent a284189656
commit 493eb036c7

View File

@@ -52,7 +52,7 @@
foreach ($this->user->getAll() as $user):
// don't list the user himself
if($user['id'] === $this->access->profile()->id)
if($user['id'] === $this->access->profile()->id || $user['id'] === $project['owner'])
continue;
?>
<option value="<?=$user['id'];?>"><?=$user['firstname'];?> <?=$user['lastname'];?></option>