08-05-2010 02:48 PM
Currently, I have code where the list of users is hard coded. (i.e. if CurrentUser = User1 or User2 then enable x else disable it). However, given the constantly changing nature of permissions, etc. I would like to have a more dynamic list and have thereby created a team "Team1". I am ta aloss of how to programmatically access said team though. I need something that does
If CurrentUser Is Team1Member then
How exactly can I got about grabbing the team list?
Solved! Go to Solution.
08-05-2010 03:52 PM
Your best bet would be via the TeamManager:
ActFramework oFram;
User u = oFram.CurrentUser;
Team[] teams = oFram.Teams.Teams;
foreach(Team t in teams){
if(t.Name=="My Team" && t.ContainsUser(u)){
doStuff();
}
}
I haven't tested this code but hopefully it should do the trick.
HTH,
08-06-2010 09:58 AM
