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'));
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'));
18.221.154.18