Explorar o código

Do not show Switch to Org item for current organization in the org dropdown, Fixes #2136

Torkel Ödegaard %!s(int64=10) %!d(string=hai) anos
pai
achega
b39f8fb4de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public/app/controllers/sidemenuCtrl.js

+ 1 - 1
public/app/controllers/sidemenuCtrl.js

@@ -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;
           }