diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.js index 66569da68f..59fd69abc6 100644 --- a/public/src/modules/helpers.js +++ b/public/src/modules/helpers.js @@ -115,21 +115,21 @@ // Groups helpers helpers.membershipBtn = function(groupObj) { - if (groupObj.isMember) { - if (groupObj.name==='administrators') { + if (groupObj.name==='administrators') { return ''; - } else { + } else { + if (groupObj.isMember) { return ''; - } - } else { - if (groupObj.isPending) { - return ''; - } else if (groupObj.isInvited) { - return ''; } else { - return ''; + if (groupObj.isPending) { + return ''; + } else if (groupObj.isInvited) { + return ''; + } else { + return ''; + } } - } + } }; helpers.spawnPrivilegeStates = function(member, privileges) {