Commit fbe56355 authored by Penom Nom's avatar Penom Nom
Browse files

Show project modification buttons for the administrator of a project. Only the...

Show project modification buttons for the administrator of a project. Only the addproject button is made unavailable (correction)
parent 52b67959
......@@ -173,6 +173,7 @@ class tx_nG6_pi1 extends tslib_pibase {
$smarty->assign('pid', $this->conf['userpidList']);
$smarty->assign('server_url', $this->conf['server_url']);
$smarty->assign('single_project_display', $single_project_display);
$smarty->assign('is_ng6_admin', tx_nG6_db::is_ng6_administrator($user_id) ? true : false);
// If it's a single project, add runs and analysis information
if ($single_project_display) {
......
......@@ -73,7 +73,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{/if}
{/foreach}
</tbody>
{if $is_at_least_admin_of_1_project && $login_user}
{if ($is_at_least_admin_of_1_project && $login_user) || $is_ng6_admin }
<tfoot>
<tr>
<th align="left" colspan="4">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment