Directory

← Back

mtz-permission-check

Handles the permission checking based on desired requirements

Author

Contributors

Rating

[ 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.

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Dependencies

Polymer/polymer#^2.0.0

Released
2017-07-25
Maturity
TESTED
License
Other

Compatibility

Framework
Polymer 2.0+
Browser
Browser Independent
Online