Review 9.5 Merged

62936[BUGFIX] Reimplement previewing of date / usergroup restricted content

Susi Moog CR +2 V +2 Hard +299 −160 updated 03/18/20, 19:52

Commit message

Preview functionality was only implemented in the Admin Panel. Previewing
itself (as in being able to preview pages with access or user restrictions)
should also work without having the admin panel installed and open.

The basic process is now like this:
- Backend generates preview URLs for pages with access restrictions
-- starttime, endtime, fe groups
--> parameters ADMCMD_simUser and ADMCMD_simTime are appended to the FE URL
- Frontend PreviewSimulator Middleware uses these parameters to modify
the current Context
- Adminpanel - if installed and open - takes given parameters as settings
for preview date/time/group - when user changes those, they are overwritten

Technical Changes:
- BackendUtility: Enable link generation for a specified context
- DateTimeAspect: Add new property to aspect to mirror SIM_ACCESS_TIME global
- PageRepository: Use new DateTimeAspect context property for enable fields
- AdminPanel: Set $_GET params in settings if given, remove $_GET vars if user
saves admin panel settings (to allow user to change date/time in AdminPanel)

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 17