Example usage

Here's a simple example, where we log true or false, depending on whether the user has the admin role:

var currentUser = gs.getUser(); 
gs.info(currentUser.hasRole('admin'));
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.154.18