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

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

View File

@ -316,6 +316,21 @@ public class WebSession
return roles; 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() public String getRole()
{ {