isReader
  • 02 Nov 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

isReader

  • Dark
    Light
  • PDF

Article summary

Description

Type: Boolean

Returns whether or not the current user has the reader role.


Examples

// check to see if user has 'reader' role
if (user.isReader)
    debug.log("User has reader role.");

Remarks

Definition

A role is a security term that refers to a type of user and the set of permissions they have.

You can use this information within your scripts to deliver role-specific features and user experience enhancements.


What's Next