Commit 98869b5a authored by Christophe Maudoux's avatar Christophe Maudoux

Enable routes if required (#1661)

parent 4af47ad6
......@@ -42,7 +42,7 @@ protection = manager
viewerHiddenKeys = samlIDPMetaDataNodes samlSPMetaDataNodes portalDisplayLogout captcha_login_enabled
viewerAllowBrowser = 1
viewerAllowDiff = 1
viewerAllowDiff = 0
staticPrefix = /static
languages = fr, en, vi, ar, de, it, zh
......
......@@ -66,13 +66,15 @@ sub addRoutes {
);
}
# Other keys
$self->addRoute( view => { ':cfgNum' => { '*' => 'getKey' } }, ['GET'] )
# Difference between confs
if ( $self->{viewerAllowDiff} ) {
$self->addRoute(
view => { diff => { ':conf1' => { ':conf2' => 'viewDiff' } } } )
->addRoute( 'viewDiff.html', undef, ['GET'] );
}
# Difference between confs
->addRoute(
view => { diff => { ':conf1' => { ':conf2' => 'viewDiff' } } } )
->addRoute( 'viewDiff.html', undef, ['GET'] );
# Other keys
$self->addRoute( view => { ':cfgNum' => { '*' => 'getKey' } }, ['GET'] );
}
sub getConfByNum {
......
......@@ -50,9 +50,7 @@
</ul>
</div>
</div>
<TMPL_IF NAME="ALLOWDIFF">
<form class="form-group slide-animate-container" ng-include="formPrefix+form+'.html'" scope="$scope" />
</TMPL_IF>
</div>
<!-- Help container -->
<div id="bottom" ng-if="showH" class="hidden-xs">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment