Fixed user banning privilege

This commit is contained in:
Marcin Kurczewski
2014-10-14 22:38:02 +02:00
parent d6b05e5968
commit 35b893db9d
6 changed files with 11 additions and 5 deletions

View File

@ -19,7 +19,7 @@ App.Auth = function(_, jQuery, util, api, appState, promise) {
changeAllPasswords: 'changeAllPasswords',
deleteOwnAccount: 'deleteOwnAccount',
deleteAllAccounts: 'deleteAllAccounts',
ban: 'ban',
banUsers: 'banUsers',
listPosts: 'listPosts',
viewPosts: 'viewPosts',

View File

@ -23,7 +23,7 @@ App.Presenters.UserAccountSettingsPresenter = function(
privileges = {
canBan:
auth.hasPrivilege(auth.privileges.ban),
auth.hasPrivilege(auth.privileges.banUsers),
canChangeAccessRank:
auth.hasPrivilege(auth.privileges.changeAccessRank),
canChangeAvatarStyle: