Created
August 31, 2013 23:16
-
-
Save avasyukov/6401260 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get user list from request parameter | |
var reqUsers = args['user'].split(','); | |
var users = []; | |
// Loop through complete list of managees | |
for each(var user in managees ) | |
{ | |
// Check if we are to include this managee into report or not | |
for each( ruser in reqUsers ) | |
{ | |
// We need this user, if he/she was specified in request parameters or if request asks for 'any user' | |
if( user.userName == ruser || ruser == '*' ) | |
{ | |
users.push( user ); | |
break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment