Browse Source

https://assistance.opentalent.fr/browse/V8-2383

Olivier Massot 4 years ago
parent
commit
4d8f870d91

+ 5 - 0
ot_templating/Resources/Public/assets/Classic/script/structures.js

@@ -147,6 +147,11 @@ $(document).ready(function() {
     // Does the given structure match the current query
     function matchCurrentQuery(structure) {
 
+        // Is the structure a member of the website federation?
+        if (![structure.n1Id, structure.n2Id, structure.n3Id, structure.n4Id, structure.n5Id].includes(organizationId)) {
+            return false;
+        }
+
         // Filter by name
         if (query['what'] && !structure.name.toLowerCase().includes(query['what'].toLowerCase())) {
             return false;