Do not show Switch to Org item for current organization in the org dropdown, Fixes #2136
This commit is contained in:
@@ -55,7 +55,7 @@ function (angular, _, $, config) {
|
||||
|
||||
backendSrv.get('/api/user/orgs').then(function(orgs) {
|
||||
_.each(orgs, function(org) {
|
||||
if (org.isUsing) {
|
||||
if (org.orgId === contextSrv.user.orgId) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user