diff --git a/src/js/releaseRules.js b/src/js/releaseRules.js index d391f4604ef8160466dd4e729d8224cfbda63214..ab0a354a055fc0872a7cdb3c9b2a458c13652cc9 100644 --- a/src/js/releaseRules.js +++ b/src/js/releaseRules.js @@ -182,7 +182,11 @@ App.Utils.releaseSummaryLong = function releaseSummaryLong(slave) { if (rel.master === 1) { permissions.push("you"); } - return permissions.reduce(function(res, ch, i, arr) { return res + (i === arr.length - 1 ? ' and ' : ', ') + ch; }); + if (permissions.length > 0) { + return permissions.reduce(function(res, ch, i, arr) { return res + (i === arr.length - 1 ? ' and ' : ', ') + ch; }); + } else { + return "restrictive"; + } } };