Skip to content
Snippets Groups Projects
SiB-Ac-Checker.rst 861 B
Newer Older
solid-ac-checker
================

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

.. code:: html

   <solid-ac-checker permission="acl:Write" bind-resources>
     <solid-route name="member-edit">
       <div>Edit</div>
     </solid-route>
   </solid-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>`__