Don't list the user himself when sharing a project
Sharing with yourself is not a good idea.
This commit is contained in:
@@ -50,6 +50,10 @@
|
|||||||
<select name="user_id" id="user_id" class="drop">
|
<select name="user_id" id="user_id" class="drop">
|
||||||
<?php
|
<?php
|
||||||
foreach ($this->user->getAll() as $user):
|
foreach ($this->user->getAll() as $user):
|
||||||
|
|
||||||
|
// don't list the user himself
|
||||||
|
if($user['id'] === $this->access->profile()->id)
|
||||||
|
continue;
|
||||||
?>
|
?>
|
||||||
<option value="<?=$user['id'];?>"><?=$user['firstname'];?> <?=$user['lastname'];?></option>
|
<option value="<?=$user['id'];?>"><?=$user['firstname'];?> <?=$user['lastname'];?></option>
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
Reference in New Issue
Block a user