Skip to content

Instantly share code, notes, and snippets.

View ghettocounselor's full-sized avatar

Ghetto Counselor ghettocounselor

  • Boise, Idaho
View GitHub Profile
// Get the first assessments that link to the current one, and grant access if we can view it
def currentuser = context.getUser(); // The current user object
def assessment = args["assessment"];
def incoming_links = assessment.getLinksTo();
if( incoming_links )
{
def first_incoming = incoming_links[0]; // We assume only one incoming link