diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-08-14 17:57:20 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-08-14 17:57:20 -0400 |
commit | de6bcb97bfc0c0ef2f7e40f381d2f3ef35455fbd (patch) | |
tree | e85a9d464739fc77ef8d31693bbaa26dec442c6d /app/Template | |
parent | e637a17efbedf907226c8e08a314ee8d208bdf20 (diff) |
Fix condition for permission on project creation
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/app/layout.php | 2 | ||||
-rw-r--r-- | app/Template/project/index.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Template/app/layout.php b/app/Template/app/layout.php index de561ded..4f82121e 100644 --- a/app/Template/app/layout.php +++ b/app/Template/app/layout.php @@ -1,7 +1,7 @@ <section id="main"> <div class="page-header page-header-mobile"> <ul> - <?php if ($this->user->isProjectAdmin()): ?> + <?php if ($this->user->isProjectAdmin() || $this->user->isAdmin()): ?> <li> <i class="fa fa-plus fa-fw"></i> <?= $this->url->link(t('New project'), 'project', 'create') ?> diff --git a/app/Template/project/index.php b/app/Template/project/index.php index 679bdd00..1fb3b5d6 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->isProjectAdmin()): ?> + <?php if ($this->user->isProjectAdmin() || $this->user->isAdmin()): ?> <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> |