Closed (fixed)
Project:
Webform
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2013 at 10:23 UTC
Updated:
1 Sep 2014 at 20:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
quicksketchThanks this is a good suggestion. Webform (afaik) always sets a destination parameter when deleting/editing submissions in the UI. Are you linking to these URLs directly instead of accessing it through the UI?
In any case, it'd be good to check the permissions when setting the default redirect like you suggest to prevent any kind of errors when a destination is not set.
Comment #2
Rob Rutten commentedHi,
It' can be reproduced using the default UI.
Just open the submissions page ("see previous submissions") and open (view) one of the submissions. Now you have the option to delete it (if you have set the right permissions). This delete tab does not have a destination set.
Rob.
Comment #3
Rob Rutten commentedHi,
The problem appears to be in the following function:
I've added the extra user_access check.
Comment #4
danchadwick commentedComment #6
danchadwick commentedThere are 3 places where the delete submission URL can be reached. These are:
I fixed the following issues.