summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Template/project_permission/users.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Template/project_permission/users.php b/app/Template/project_permission/users.php
index 1180fe1c..54c85574 100644
--- a/app/Template/project_permission/users.php
+++ b/app/Template/project_permission/users.php
@@ -21,7 +21,9 @@
)) ?>
</td>
<td>
- <?= $this->url->icon('trash-o', t('Remove'), 'ProjectPermissionController', 'removeUser', array('project_id' => $project['id'], 'user_id' => $user['id']), true) ?>
+ <?php if (! $this->user->isCurrentUser($user['id'])): ?>
+ <?= $this->url->icon('trash-o', t('Remove'), 'ProjectPermissionController', 'removeUser', array('project_id' => $project['id'], 'user_id' => $user['id']), true) ?>
+ <?php endif ?>
</td>
</tr>
<?php endforeach ?>