Closed (fixed)
Project:
Webform
Version:
8.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jan 2018 at 15:48 UTC
Updated:
7 Dec 2018 at 23:04 UTC
Jump to comment: Most recent
There are couple of pages where webform displays logs:
The last two routes rely on access webform submission log permission and \Drupal\webform\Access\WebformEntityAccess:checkLogAccess custom access check, while the entity.webform_submission.collection_log route relies on \Drupal\webform\Access\WebformAccountAccess:checkSubmissionAccess.
As a result, a user can face 403's by clicking one of two links provided on Webforms: Submissions log page (admin/structure/webform/config/submissions) in case global or per-form logging is not enabled.
Discuss the possible solutions:
Comments
Comment #2
jrockowitz commentedI think I recently caught this issue and fixed it by making sure the webform has submission logging enabled when displaying the Log operation.
@see https://cgit.drupalcode.org/webform/tree/src/WebformSubmissionListBuilde...
The Log operation was always appearing on…
/admin/structure/webform/submissions/manage
/admin/structure/webform/manage/WEBFORM_ID/results/submissions