From 97d41a2102acb8a5bf11a482c3e01c698d5150e7 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Fri, 18 May 2012 10:09:53 +0200 Subject: [PATCH] Allow project members to create jobsets, regression introduced by bootstrap make-over. Currently all logged in users see these options, however, only on performing the action the privileges are checked. Need to change that in the future. --- src/root/topbar.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/root/topbar.tt b/src/root/topbar.tt index 269a7b81..08bc6ab9 100644 --- a/src/root/topbar.tt +++ b/src/root/topbar.tt @@ -50,7 +50,7 @@
  • [% INCLUDE menuItem uri = c.uri_for(c.controller('Project').action_for('releases'), [project.name]) title = "Releases" %] [% INCLUDE menuItem uri = c.uri_for('/project' project.name 'channel' 'latest') title = "Channel (latest)" %] - [% IF c.check_user_roles('admin') %] + [% IF c.user_exists %]
  • [% INCLUDE menuItem uri = c.uri_for(c.controller('Project').action_for('create_jobset'), [project.name]) title = "Create new jobset" %] [% INCLUDE menuItem uri = c.uri_for('/project' project.name 'edit') title="Edit project" %]