From 493eb036c7254c37b1bb78db285046b9089eec82 Mon Sep 17 00:00:00 2001 From: Karsten Heiken Date: Wed, 28 Sep 2011 16:30:09 +0200 Subject: [PATCH] Better: Don't share with the user himself or the actual owner --- application/views/projects/shares.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/projects/shares.php b/application/views/projects/shares.php index 173ddb8..662c046 100644 --- a/application/views/projects/shares.php +++ b/application/views/projects/shares.php @@ -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; ?>