summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-14 17:57:20 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-14 17:57:20 -0400
commitde6bcb97bfc0c0ef2f7e40f381d2f3ef35455fbd (patch)
treee85a9d464739fc77ef8d31693bbaa26dec442c6d /app
parente637a17efbedf907226c8e08a314ee8d208bdf20 (diff)
Fix condition for permission on project creation
Diffstat (limited to 'app')
-rw-r--r--app/Template/app/layout.php2
-rw-r--r--app/Template/project/index.php2
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>