[TASK] Move workspace preview user to custom class 88/55888/6
authorBenni Mack <benni@typo3.org>
Sat, 24 Feb 2018 20:03:21 +0000 (21:03 +0100)
committerBenni Mack <benni@typo3.org>
Mon, 26 Feb 2018 05:25:02 +0000 (06:25 +0100)
commitda59154044d940ad9f97794f201776ff7bc31c55
tree4d1c5dc0d2b3f923a5b50c052e256e5879f1c14f
parentcb0837e77794c2af1c60d442966bd74bc9893d78
[TASK] Move workspace preview user to custom class

Instead of faking an existing backend user, the workspace preview
functionality (= from a link) should use an anonymous read-only
use which has only access to the workspace and the page, in order
to remove the hacks to allow read-access for existing backend users.

This way, the hook code is getting cleaner and easier to read, and also
easier to debug.

Resolves: #84039
Releases: master
Change-Id: Ia69d66ce25af48b86104ff724f2a3e877aa3a813
Reviewed-on: https://review.typo3.org/55888
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/workspaces/Classes/Authentication/PreviewUserAuthentication.php [new file with mode: 0644]
typo3/sysext/workspaces/Classes/Hook/PreviewHook.php
typo3/sysext/workspaces/ext_localconf.php