From 4b53fee85c8eb448ea3528eb3d633f7a34554c57 Mon Sep 17 00:00:00 2001 From: wangning <164851225@qq.com> Date: Thu, 5 Jul 2018 18:17:38 +0800 Subject: [PATCH] update --- src/main/ui/static/boot/indexMainApp.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/ui/static/boot/indexMainApp.js b/src/main/ui/static/boot/indexMainApp.js index d0a55cd3d..c214a29bd 100644 --- a/src/main/ui/static/boot/indexMainApp.js +++ b/src/main/ui/static/boot/indexMainApp.js @@ -555,6 +555,19 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo return roles.indexOf($rootScope.currentUser.role) >= 0; } }]); + + app.filter('withPartnerModule', ['$rootScope', function ($rootScope) { + return function (module) { + var result = false; + angular.forEach($rootScope.currentUser.available_module_ids, function (item) { + if((item+'') == (module+'')){ + result = true; + return ; + } + }); + return result; + } + }]); app.filter("trustUrl", ['$sce', function ($sce) { return function (recordingUrl) { return $sce.trustAsResourceUrl(recordingUrl);