Improve this doc View source

ifUserNotInGroup
directive in module stormpath

Description

Use this directive to conditionally show an element if the user is logged in and is NOT a member of the group that is specified by the expression.

This is the inverse of ifUserInGroup, please refer to that directive for full usage information.

Note: This feature depends on the data that is returned by the CURRENT_USER_URI. Your server should expand the account's groups before returning the user. If you are using express-stormpath, simply use Automatic Expansion

Usage

as attribute
<ANY if-user-not-in-group>
   ...
</ANY>

Example

<div class="container">
  <h3 if-user-not-in-group="'admins'">
    Hello, {{user.fullName}}, please request administrator access
  </h3>
</div>