From 0366cfd8eccd214223f3a2ee70fe4e56f5fa01af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 29 Jan 2019 14:10:40 -0500 Subject: [PATCH] fix: allow regular groups to local login --- public/src/modules/helpers.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.js index 8dc1530a1c..de5998469b 100644 --- a/public/src/modules/helpers.js +++ b/public/src/modules/helpers.js @@ -178,12 +178,11 @@ } } return states.map(function (priv) { - var guestDisabled = ['groups:moderate', 'groups:posts:upvote', 'groups:posts:downvote']; + var guestDisabled = ['groups:moderate', 'groups:posts:upvote', 'groups:posts:downvote', 'groups:local:login']; var spidersEnabled = ['groups:find', 'groups:read', 'groups:topics:read']; var disabled = (member === 'guests' && guestDisabled.includes(priv.name)) || - (member === 'spiders' && !spidersEnabled.includes(priv.name)) || - (member !== 'registered-users' && priv.name === 'groups:local:login'); + (member === 'spiders' && !spidersEnabled.includes(priv.name)); return ''; }).join('');