fix for cog and anon JENKINS-39889 (#610)

This commit is contained in:
Michael Neale 2016-11-21 10:24:33 +11:00 committed by GitHub
parent 6b743eafd1
commit affc7bfee4
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ export function pipelineBranchesUnsupported(pipeline) {
const classicConfigLink = (pipeline) => {
let link = null;
if (User.current().isAnonymous()) {
if (!User.current().isAnonymous()) {
link = <a href={buildClassicConfigUrl(pipeline)} target="_blank"><Icon size={24} icon="settings" style={{ fill: '#fff' }} /></a>;
}
return link;

View File

@ -35,7 +35,7 @@ const { func, object, any, string } = PropTypes;
const classicConfigLink = (pipeline) => {
let link = null;
if (User.current().isAnonymous()) {
if (!User.current().isAnonymous()) {
let url = buildClassicConfigUrl(pipeline);
link = (
<a href={url} target="_blank" style={{ height: '24px' }}>