Closed (fixed)
Project:
Webform
Version:
6.2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jun 2023 at 17:02 UTC
Updated:
20 Apr 2024 at 07:34 UTC
Jump to comment: Most recent
Upload tab appears on node results page even if user doesn't have the "update any submission" permission.
Add the same requirement that we have on the non-node upload route:
_entity_access: 'webform.submission_update_any'
That should give something like:
entity.node.webform_submission_export_import.results_import:
path: '/node/{node}/webform/results/upload'
defaults:
_form: '\Drupal\webform_submission_export_import\Form\WebformSubmissionExportImportUploadForm'
_title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
operation: webform_submission_view
entity_access: 'webform.submission_view_any'
options:
parameters:
node:
type: 'entity:node'
requirements:
_entity_access: 'webform.submission_update_any'
_custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformResultsAccess'Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
cilefen commentedComment #3
mably commentedComment #5
jrockowitz commentedComment #6
jrockowitz commentedComment #8
jrockowitz commented