Closed (fixed)
Project:
Webform
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
22 May 2014 at 20:12 UTC
Updated:
15 Mar 2015 at 20:55 UTC
Jump to comment: Most recent
If user uid = 1 (the site administrator) tries to submit a form when webform_submission_access_control is enabled and none of the user's roles are listed, webform handles this inconsistently. It calls it's theme function (theme_webform_view_messages), but the test for the error within that routine doesn't actually generate a message. The form does not submit, but no error is displayed.
To fix this, the site administrator will be considered authorized to submit any form in webform_client_form_validate so that the test matches the corresponding test to display the message in the theme function.
Comments
Comment #1
danchadwick commentedFixed. Committed to 7.x-4.x.
Comment #4
danchadwick commentedPorted to 8.x and committed.
Comment #5
fenstratThanks @DanChadwick!
Comment #7
danchadwick commented