Repository: stratos Updated Branches: refs/heads/stratos-4.1.x 8ff6a2ab0 -> d0bc92795
Custom helper to check super tenant Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/1ca22f3a Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/1ca22f3a Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/1ca22f3a Branch: refs/heads/stratos-4.1.x Commit: 1ca22f3a3d4002509d576cfddff4ab2c60cb5fe5 Parents: 42c388b Author: Dinithi <[email protected]> Authored: Tue Sep 15 22:17:03 2015 +0530 Committer: Dinithi <[email protected]> Committed: Tue Sep 15 22:17:03 2015 +0530 ---------------------------------------------------------------------- .../console/themes/theme0/theme.js | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/1ca22f3a/components/org.apache.stratos.manager.console/console/themes/theme0/theme.js ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme0/theme.js b/components/org.apache.stratos.manager.console/console/themes/theme0/theme.js index 5df0122..42deb6c 100644 --- a/components/org.apache.stratos.manager.console/console/themes/theme0/theme.js +++ b/components/org.apache.stratos.manager.console/console/themes/theme0/theme.js @@ -106,6 +106,14 @@ var engine = require('caramel').engine('handlebars', (function () { return ""; }); + Handlebars.registerHelper('isSuperTenant', function (action, options) { + if (caramel.meta().session.get("TENANT_ID") != undefined) { + if (caramel.meta().session.get("TENANT_ID") == -1234) { + return true; + } + } + return ""; + }); } } }()));
