Fix condition for permission on project creation

This commit is contained in:
Frederic Guillot 2015-08-14 17:57:20 -04:00
parent e637a17efb
commit de6bcb97bf
2 changed files with 2 additions and 2 deletions

View File

@ -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') ?>

View File

@ -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>