Refactored privilege system

This commit is contained in:
Marcin Kurczewski
2014-09-06 10:00:26 +02:00
parent c70554330c
commit 8e8e983f28
15 changed files with 247 additions and 66 deletions

View File

@ -33,7 +33,7 @@ App.Presenters.TopNavigationPresenter = function(
$el.html(template({
loggedIn: auth.isLoggedIn(),
user: auth.getCurrentUser(),
canListUsers: auth.hasPrivilege('listUsers')
canListUsers: auth.hasPrivilege(auth.privileges.listUsers)
}));
$el.find('li.' + selectedElement).addClass('active');
};