Skip to content

Commit b39f8fb

Browse files
committed
Do not show Switch to Org item for current organization in the org dropdown, Fixes grafana#2136
1 parent 6deaa87 commit b39f8fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/app/controllers/sidemenuCtrl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function (angular, _, $, config) {
5555

5656
backendSrv.get('/api/user/orgs').then(function(orgs) {
5757
_.each(orgs, function(org) {
58-
if (org.isUsing) {
58+
if (org.orgId === contextSrv.user.orgId) {
5959
return;
6060
}
6161

0 commit comments

Comments
 (0)