diff options
| author | Ruin0x11 <ipickering2@gmail.com> | 2020-05-04 00:09:33 -0700 |
|---|---|---|
| committer | Ruin0x11 <ipickering2@gmail.com> | 2020-05-04 00:09:33 -0700 |
| commit | e6bf102bc03504d9abc584f15da70a5fed7fa950 (patch) | |
| tree | 346cbeceeb03185b0fee1c9d96a9e7697726575f /client/js/controllers/user_list_controller.js | |
| parent | d59ecb8e230a55e6875076824723580bd3f4419b (diff) | |
Add list of posts to pools
Diffstat (limited to 'client/js/controllers/user_list_controller.js')
| -rw-r--r-- | client/js/controllers/user_list_controller.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/js/controllers/user_list_controller.js b/client/js/controllers/user_list_controller.js index fa878d8..5d666f8 100644 --- a/client/js/controllers/user_list_controller.js +++ b/client/js/controllers/user_list_controller.js @@ -12,6 +12,8 @@ const EmptyView = require('../views/empty_view.js'); class UserListController { constructor(ctx) { + this._pageController = new PageController(); + if (!api.hasPrivilege('users:list')) { this._view = new EmptyView(); this._view.showError('You don\'t have privileges to view users.'); @@ -22,7 +24,6 @@ class UserListController { topNavigation.setTitle('Listing users'); this._ctx = ctx; - this._pageController = new PageController(); this._headerView = new UsersHeaderView({ hostNode: this._pageController.view.pageHeaderHolderNode, |