mtz-permission-check | Vaadin

Handles the permission checking based on desired requirements

[ This description is mirrored from README.md at github.com/MaritzSTL/mtz-permission-check on 2019-05-22 ]

Build Status Published on webcomponents.org

<mtz-permission-check>

<h4>Control User's Authentication status</h4>
<div class="userStatus">
  <paper-checkbox checked="{{signedIn}}">
    Signed In
  </paper-checkbox>
  <paper-checkbox checked="{{anonymous}}">
    Anonymous
  </paper-checkbox>
  <paper-checkbox checked="{{authenticated}}">
    Authenticated
  </paper-checkbox>
</div>
<mtz-permission-check
  anonymous="[[anonymous]]"
  signed-in="[[signedIn]]"
  authenticated="[[authenticated]]"
  restamp>
  <template>
    Top Secret Content
  </template>
</mtz-permission-check>

Install the Polymer-CLI

First, make sure you have the Polymer CLI installed. Then run polymer serve to serve your element locally.

Viewing Your Element

$ polymer serve

Running Tests

$ polymer test

Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.

Install

Link to this version
TestedReleased 25 July 2017Other
Framework Support
Polymer 2.0+
Browser Compatibility
Install with
Release notes - Version 0.1.1

Dependencies

Polymer/polymer#^2.0.0