From fa90a294906454a15d17cc1c374eeda73640c350 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 2 May 2018 14:17:29 -0700 Subject: Avoid people to remove themselves from project permissions --- app/Template/project_permission/users.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/Template/project_permission/users.php') 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 @@ )) ?> - url->icon('trash-o', t('Remove'), 'ProjectPermissionController', 'removeUser', array('project_id' => $project['id'], 'user_id' => $user['id']), true) ?> + user->isCurrentUser($user['id'])): ?> + url->icon('trash-o', t('Remove'), 'ProjectPermissionController', 'removeUser', array('project_id' => $project['id'], 'user_id' => $user['id']), true) ?> + -- cgit v1.2.3