Skip to content
Snippets Groups Projects
Commit 0191fcc3 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Simplify DH->checkRecordUpdateAccess()

Argument 3 $data of `checkRecordUpdateAccess()` is
funny: It is only used if argument 4 is given as
well. This is only done in method `process_datamap()`,
so `checkRecordUpdateAccess` hook method is
only triggered from within that method.

This situation allows us to move the hook call into
`process_datamap()` directly, making it more obvious
it's only triggered by that `main` method. This
allows us to get rid of arguments 3 and 4. Also
point out a logical issue within the method.

Resolves: #103126
Releases: main
Change-Id: I4f4b2711784c005ed312ca491775c3e1d39b35d3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83010


Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
parent ea8b46f7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment