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:
parent
1c02094545
commit
6cc4a44d86
@ -315,6 +315,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()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user