diff options
Diffstat (limited to 'app/Template/project')
-rw-r--r-- | app/Template/project/dropdown.php | 2 | ||||
-rw-r--r-- | app/Template/project/edit.php | 2 | ||||
-rw-r--r-- | app/Template/project/index.php | 2 | ||||
-rw-r--r-- | app/Template/project/sidebar.php | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/app/Template/project/dropdown.php b/app/Template/project/dropdown.php index aa4322e6..0a53cc05 100644 --- a/app/Template/project/dropdown.php +++ b/app/Template/project/dropdown.php @@ -9,7 +9,7 @@ </li> <?php endif ?> -<?php if ($this->user->isManager($project['id'])): ?> +<?php if ($this->user->isProjectManagementAllowed($project['id'])): ?> <li> <i class="fa fa-line-chart fa-fw"></i> <?= $this->url->link(t('Analytics'), 'analytic', 'tasks', array('project_id' => $project['id'])) ?> diff --git a/app/Template/project/edit.php b/app/Template/project/edit.php index 794267f4..c8f235c7 100644 --- a/app/Template/project/edit.php +++ b/app/Template/project/edit.php @@ -13,7 +13,7 @@ <?= $this->form->text('identifier', $values, $errors, array('maxlength="50"')) ?> <p class="form-help"><?= t('The project identifier is an optional alphanumeric code used to identify your project.') ?></p> - <?php if ($this->user->isAdmin()): ?> + <?php if ($this->user->isAdmin() || $this->user->isProjectAdministrationAllowed($project['id'])): ?> <?= $this->form->checkbox('is_private', t('Private project'), 1, $project['is_private'] == 1) ?> <?php endif ?> diff --git a/app/Template/project/index.php b/app/Template/project/index.php index 971ba2ae..679bdd00 100644 --- a/app/Template/project/index.php +++ b/app/Template/project/index.php @@ -1,7 +1,7 @@ <section id="main"> <div class="page-header"> <ul> - <?php if ($this->user->isAdmin()): ?> + <?php if ($this->user->isProjectAdmin()): ?> <li><i class="fa fa-plus fa-fw"></i><?= $this->url->link(t('New project'), 'project', 'create') ?></li> <?php endif ?> <li><i class="fa fa-lock fa-fw"></i><?= $this->url->link(t('New private project'), 'project', 'create', array('private' => 1)) ?></li> diff --git a/app/Template/project/sidebar.php b/app/Template/project/sidebar.php index 7ee39f53..d6f7db97 100644 --- a/app/Template/project/sidebar.php +++ b/app/Template/project/sidebar.php @@ -5,7 +5,7 @@ <?= $this->url->link(t('Summary'), 'project', 'show', array('project_id' => $project['id'])) ?> </li> - <?php if ($this->user->isManager($project['id'])): ?> + <?php if ($this->user->isProjectManagementAllowed($project['id'])): ?> <li> <?= $this->url->link(t('Public access'), 'project', 'share', array('project_id' => $project['id'])) ?> </li> @@ -42,7 +42,7 @@ <?= $this->url->link(t('Enable'), 'project', 'enable', array('project_id' => $project['id']), true) ?> <?php endif ?> </li> - <?php if ($this->user->isAdmin()): ?> + <?php if ($this->user->isProjectAdministrationAllowed($project['id'])): ?> <li> <?= $this->url->link(t('Remove'), 'project', 'remove', array('project_id' => $project['id'])) ?> </li> |