diff --git a/src/app/organization/organizationPeopleController.js b/src/app/organization/organizationPeopleController.js index 6a80a1cd0d..67be489e00 100644 --- a/src/app/organization/organizationPeopleController.js +++ b/src/app/organization/organizationPeopleController.js @@ -1,11 +1,20 @@ angular .module('bit.organization') - .controller('organizationPeopleController', function ($scope, $state, $uibModal, cryptoService, apiService, + .controller('organizationPeopleController', function ($scope, $state, $uibModal, cryptoService, apiService, authService, toastr, $analytics) { $scope.users = []; + $scope.useGroups = false; + $scope.$on('$viewContentLoaded', function () { loadList(); + + authService.getUserProfile().then(function (profile) { + if (profile.organizations) { + var org = profile.organizations[$state.params.orgId]; + $scope.useGroups = !!org.useGroups; + } + }); }); $scope.reinvite = function (user) { @@ -97,7 +106,7 @@ }); modal.result.then(function () { - + }); }; diff --git a/src/app/organization/views/organizationPeople.html b/src/app/organization/views/organizationPeople.html index 1a541592dc..0d27b2218e 100644 --- a/src/app/organization/views/organizationPeople.html +++ b/src/app/organization/views/organizationPeople.html @@ -42,7 +42,7 @@