output a message if access to form() action was prohibited

This commit is contained in:
Uwe Steinmann 2016-08-12 12:42:25 +02:00
parent 4fa95bcd48
commit 504cfe6d3e

View File

@ -211,11 +211,13 @@ $(document).ready( function() {
</div>
<div class="span8">
<div class="well">
<?php if($accessop->check_view_access($this, array('action'=>'form'))) { ?>
<div class="well">
<div class="ajax" data-view="RoleMgr" data-action="form" <?php echo ($selrole ? "data-query=\"roleid=".$selrole->getID()."\"" : "") ?>></div>
<?php } ?>
</div>
<?php } else {
$this->errorMsg(getMLText('access_denied'));
} ?>
</div>
</div>