1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 17:23:37 +00:00

disabled org labeling

This commit is contained in:
Kyle Spearrin
2017-04-11 15:56:57 -04:00
parent 400932c6de
commit d619167c02
9 changed files with 76 additions and 28 deletions

View File

@@ -32,7 +32,8 @@
id: user.Organizations[i].Id,
name: user.Organizations[i].Name,
status: user.Organizations[i].Status,
type: user.Organizations[i].Type
type: user.Organizations[i].Type,
enabled: user.Organizations[i].Enabled
});
}
@@ -73,8 +74,13 @@
});
};
$scope.viewOrganization = function (id) {
$state.go('backend.org.dashboard', { orgId: id });
$scope.viewOrganization = function (org) {
if (org.type === 2) { // 2 = User
toastr.error('You cannot manage this organization.');
return;
}
$state.go('backend.org.dashboard', { orgId: org.id });
};
$scope.twoFactor = function () {