restored setAdmin method removed in r389 to make the trunk compile again

git-svn-id: http://webgoat.googlecode.com/svn/trunk@391 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
ch.ko123
2009-11-01 10:39:29 +00:00
parent e15957ad68
commit bb15524a7a

View File

@ -315,6 +315,21 @@ public class WebSession
return roles;
}
/**
* Sets the admin flag - this routine is ONLY here to allow someone a backdoor to setting the
* user up as an admin.
*
* This is also used by the WebSession to set the admin, but the method should be private
*
* @param state
*/
public void setAdmin(boolean state)
{
isAdmin = state;
}
public String getRole()
{