diff options
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() ?> |