Commit 5a6942c6 authored by Yadd's avatar Yadd
Browse files

Add "rule" for apps in menu (fixes: #1267)

parent b8811088
......@@ -63,10 +63,17 @@
<input id="iAuto" type="radio" value="auto" ng-model="" role="radio" aria-label="Auto"/>
<span trspan="auto">
<label class="radio-inline">
<input id="iExpr" type="radio" value="rule" ng-click="''" ng-checked="!=='on'&&!=='off'&&!=='auto'" aria-label="Rule" role="radio"/>
<label id="rulel" for="bopeExpr" trspan="specialRule"></label>
<div class="panel-body input-group maxw" ng-if="!=='on'&&!=='off'&&!=='auto'">
<textarea id="iValue" class="form-control" rows="2" ng-model="" aria-label="Rule expression"/>
<script type="text/ng-template" id="logoChoice.html">
<div class="modal-header">
......@@ -461,11 +461,18 @@ sub _filterHash {
# Keep node if display is "yes" or "on"
next if ( $appdisplay =~ /^(yes|on)$/ );
my $cond = undef;
if ( $appdisplay !~ /^auto$/i ) {
$cond =
$self->p->HANDLER->substitute($appdisplay) );
# Check grant function if display is "auto" (this is the default)
delete $apphash->{$key}
unless (
$req, $req->sessionInfo, $appuri, undef, $vhost
$req, $req->sessionInfo, $appuri, $cond, $vhost
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