Scoped GlideSystem - getSession()

Gets a reference to the current Glide session.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String A reference for the current session.
if (!gs.hasRole("admin") && !gs.hasRole("user_admin") && gs.getSession().isInteractive()) {
  current.addQuery("active", "true");
}

Output: