Make stage completion messages appear in a logical order
git-svn-id: http://webgoat.googlecode.com/svn/trunk@270 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
parent
45d7b763d4
commit
280b46029b
@ -233,6 +233,8 @@ public class RoleBasedAccessControl extends GoatHillsFinancial
|
||||
}
|
||||
catch (UnauthorizedException ue2)
|
||||
{
|
||||
s.setMessage("You are not authorized to perform this function");
|
||||
|
||||
// Update lesson status if necessary.
|
||||
String stage = getStage(s);
|
||||
if (STAGE2.equals(stage))
|
||||
@ -273,7 +275,6 @@ public class RoleBasedAccessControl extends GoatHillsFinancial
|
||||
}
|
||||
}
|
||||
|
||||
s.setMessage("You are not authorized to perform this function");
|
||||
System.out.println("Authorization failure");
|
||||
setCurrentAction(s, ERROR_ACTION);
|
||||
ue2.printStackTrace();
|
||||
|
Loading…
x
Reference in New Issue
Block a user