mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 17:23:37 +00:00
disabled org labeling
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user