Skip to content

Commit

Permalink
PASSBOLT-2282 fixed regression
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmuller committed Aug 21, 2017
1 parent f193cf5 commit 0b0b5fb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion app/webroot/js/app/component/user_sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ var UserSidebar = passbolt.component.UserSidebar = passbolt.component.Sidebar.ex
afterStart: function () {
this._super();

if (this.options.selectedItem.active == '1') {
// active field will not be provided for non admin users,
// but we still want to display information regarding groups.
if (this.options.selectedItem.active === undefined || this.options.selectedItem.active == '1') {
// Instantiate the groups list component for the current user.
var userGroups = new passbolt.component.sidebarSection.UserGroups($('#js_user_groups', this.element), {
selectedUser: this.options.selectedItem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</ul>
</div>

<% if (user.active == '1') { %>
<% if (user.active === undefined || user.active == '1') { %>
<!-- User groups list -->
<div class="groups" id="js_user_groups"></div>
Expand Down
Loading

0 comments on commit 0b0b5fb

Please sign in to comment.