Skip to content
Snippets Groups Projects
SiB-Ac-Checker.rst 820 B
Newer Older
sib-ac-checker
~~~~~~~~~~~~~~

Hides an element from the page if the current user doesn’t have the
required permissions on it.

.. code:: html

   <sib-ac-checker permission="acl:Write" bind-resources>
     <sib-route name="member-edit">
       <div>Edit</div>
     </sib-route>
   </sib-ac-checker>

**Attributes :**

-  **``permission``**: Displays the element if the user has the
   specified right
-  **``no-permission``**: Displays the element if the user has not the
   specified right

Possible values: -
`acl:Read <https://github.com/solid/web-access-control-spec#aclread>`__
-
`acl:Write <https://github.com/solid/web-access-control-spec#aclwrite>`__
-
`acl:Append <https://github.com/solid/web-access-control-spec#aclappend>`__
-
`acl:Control <https://github.com/solid/web-access-control-spec#aclcontrol>`__