diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-10-05 19:40:57 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-05 19:40:57 -0400 |
commit | d138834dcf902534f78237939926e97fd9a0eebe (patch) | |
tree | a6247b9ed98079899c9e21d43044030b69088bee /app/Templates/project_users.php | |
parent | 7f5a871f84639a90eebd0ac1d0ee7f759e220cf6 (diff) |
Regular users are able to create private projects
Diffstat (limited to 'app/Templates/project_users.php')
-rw-r--r-- | app/Templates/project_users.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Templates/project_users.php b/app/Templates/project_users.php index 8d75f39f..3b0de7f0 100644 --- a/app/Templates/project_users.php +++ b/app/Templates/project_users.php @@ -11,7 +11,9 @@ <?php foreach ($users['allowed'] as $user_id => $username): ?> <li> <strong><?= Helper\escape($username) ?></strong> - (<a href="?controller=project&action=revoke&project_id=<?= $project['id'] ?>&user_id=<?= $user_id.Helper\param_csrf() ?>"><?= t('revoke') ?></a>) + <?php if ($project['is_private'] == 0): ?> + (<a href="?controller=project&action=revoke&project_id=<?= $project['id'] ?>&user_id=<?= $user_id.Helper\param_csrf() ?>"><?= t('revoke') ?></a>) + <?php endif ?> </li> <?php endforeach ?> </ul> @@ -19,7 +21,7 @@ </div> <?php endif ?> -<?php if (! empty($users['not_allowed'])): ?> +<?php if ($project['is_private'] == 0 && ! empty($users['not_allowed'])): ?> <form method="post" action="?controller=project&action=allow&project_id=<?= $project['id'] ?>" autocomplete="off"> <?= Helper\form_csrf() ?> |