(function () {
    var cogClass = function () {};
    cogClass.prototype.exec = function (params, request, response) {
        var oops = this.utils.apiError;
        var sys = this.sys;
        var eventID = params.eventid;

        function respondToServer(response,obj) {
            response.writeHead(200, {'Content-Type': 'application/json'});
            response.end(JSON.stringify(obj));
        };

        sys.getEventData(response,eventID,respondToServer);

    }
    exports.cogClass = cogClass;
})();

@@ -219,16 +219,157 @@
 entid;%0A%0A
+        var role = null;%0A        var userObj = sys.admin%5Bparams.userkey%5D;%0A        if (userObj) %7B%0A            role = userObj.role;%0A        %7D%0A%0A
         
@@ -484,16 +484,45 @@
 son'%7D);%0A
+            obj.role = role;%0A
         

Return role of caller when populating page from server