diff --git a/admin/client.js b/admin/client.js index 34cfd7b59..d5e57ba2d 100644 --- a/admin/client.js +++ b/admin/client.js @@ -198,12 +198,11 @@ var AddressView = Backbone.View.extend({ type: 'button', val: 'Sel All' })); - if (IDENT.auth == 'Admin') - $el.append($('', { - "class": 'ban', - type: 'button', - val: 'Ban' - })); + $el.append($('', { + "class": 'ban', + type: 'button', + val: 'Ban' + })); $el.append( '
', diff --git a/admin/index.js b/admin/index.js index cac7dbd81..1129ad8a8 100644 --- a/admin/index.js +++ b/admin/index.js @@ -43,7 +43,7 @@ function ban(m, mod, ip, key, type, sentence) { } okyaku.dispatcher[authcommon.BAN] = function (msg, client) { - if (!caps.can_administrate(client.ident)) + if (!caps.can_moderate(client.ident)) return false; var ip = msg[0]; var type = msg[1];