[BUGFIX] Hide inline edit title button when user has no permissions

Currently the inline edit button is shown even though a
user does not have necessary edit permissions.

This has been fixed by adding the necessary checks.

As a side effect, the corresponding t3js class is no
longer added to the header for modules, not representing
an editable record title.

Resolves: #96030
Releases: master, 11.5
Change-Id: I630e97263a950cf00229ce0613e2c4d35a11425e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72233
Tested-by: core-ci <typo3@b13.com>
Tested-by: Jochen <rothjochen@gmail.com>
Tested-by: Nikita Hovratov <nikita.h@live.de>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Jochen <rothjochen@gmail.com>
Reviewed-by: Nikita Hovratov <nikita.h@live.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
297 jobs for master in 52 minutes and 46 seconds (queued for 19 seconds)