Skip to content

v0.7.3

Choose a tag to compare

@vvval vvval released this 23 Dec 10:09
· 45 commits to master since this release
  • introduce condition attribute for ui:tab element, it will allow hiding tabs:
<extends:keeper:layout.tabs/>
<use:bundle path="keeper:bundle"/>

<?php
/**
 * @var bool $condition
 */
?>

<ui:tab id="first" title="[[1st]]" active="true">
    First tab
</ui:tab>

<ui:tab id="second" title="[[2nd]]" condition="{{ $condition }}">
    Second tab
</ui:tab>
  • add permission attribute for @Link annotation. Permissions for links (sidebar and breadcrumbs) will be generated using that property, as a fallback @Guarded permission or method name will be used. This update will help to handle cases when a method is protected by a context-based permission rule, but for rendering such links in the sidebar and breadcrumbs the context can't be passed, so all you need is add an additional @Link permission and register it with allow rule