Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SAK-20783 merge from trunk

git-svn-id: https://source.sakaiproject.org/svn/user/branches/sakai-2.8.x@95036 66ffb92e-73f9-0310-93c1-f5514f145a0a
  • Loading branch information...
commit cc917256890a7fd01f4afd9bf9aa3286833d1f4e 1 parent b4a3d2a
ottenhoff@longsight.com authored
View
16 user-tool/tool/src/java/org/sakaiproject/user/tool/UsersAction.java
@@ -655,6 +655,10 @@ public void doModify(RunData data, Context context)
public void doSave(RunData data, Context context)
{
SessionState state = ((JetspeedRunData) data).getPortletSessionState(((JetspeedRunData) data).getJs_peid());
+
+ if (!"POST".equals(data.getRequest().getMethod())) {
+ return;
+ }
// read the form - if rejected, leave things as they are
if (!readUserForm(data, state)) return;
@@ -727,6 +731,10 @@ public void doSave(RunData data, Context context)
public void doCancel(RunData data, Context context)
{
SessionState state = ((JetspeedRunData) data).getPortletSessionState(((JetspeedRunData) data).getJs_peid());
+
+ if (!"POST".equals(data.getRequest().getMethod())) {
+ return;
+ }
// get the user
UserEdit user = (UserEdit) state.getAttribute("user");
@@ -793,6 +801,10 @@ public void doRemove(RunData data, Context context)
public void doRemove_confirmed(RunData data, Context context)
{
SessionState state = ((JetspeedRunData) data).getPortletSessionState(((JetspeedRunData) data).getJs_peid());
+
+ if (!"POST".equals(data.getRequest().getMethod())) {
+ return;
+ }
// get the user
UserEdit user = (UserEdit) state.getAttribute("user");
@@ -831,6 +843,10 @@ public void doRemove_confirmed(RunData data, Context context)
public void doCancel_remove(RunData data, Context context)
{
SessionState state = ((JetspeedRunData) data).getPortletSessionState(((JetspeedRunData) data).getJs_peid());
+
+ if (!"POST".equals(data.getRequest().getMethod())) {
+ return;
+ }
// return to edit mode
state.setAttribute("mode", "edit");
Please sign in to comment.
Something went wrong with that request. Please try again.