Review main Abandoned

1586[BUGFIX] Determine correct preview flag, if page is access restricted

Frederic Gaus CR 0 V 0 Easy +17 −7 updated 06/03/13, 20:49

Commit message

If a page is access-restricted and the user is logged into the backend,
the page is displayed as a preview. To determine whether the page is
access restricted or not, it is not correct to only check whether
the page is hidden or not.

The patch implements a two level check. For the first level the page
is simply checked for some access-restriction. This is enough to set the
preview flag.

On the second level the pages in the rootline are checked for some
access restriction and if the flag 'extendToSubpages' is set, the
preview flag is also set.

Review

  • Code review CR 0

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

  • Verified V 0

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

Issues 3

Files 1