LP#1277194 - filter orgs by staff_visibility user/csharp/lp1277194_add_staff_visible_column_to_aou
authorChris Sharp <csharp@georgialibraries.org>
Wed, 7 Nov 2018 15:38:42 +0000 (10:38 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 7 Nov 2018 15:38:42 +0000 (10:38 -0500)
Open-ILS/web/js/ui/default/staff/services/env.js

index cf768b1..a25ef5e 100644 (file)
@@ -192,7 +192,7 @@ function($q,  $window , $injector , egAuth,  egPCRUD,  egIDL) {
                     angular.forEach(node.children(), sort_aou);
                 }
     
-                return egPCRUD.search('aou', {parent_ou : null}, 
+                return egPCRUD.search('aou', {parent_ou : null, staff_visible : 't'}, 
                     {flesh : -1, flesh_fields : {aou : ['children', 'ou_type']}}
                 ).then(
                     function(tree) {