gyrus/Lock-Pages — pull request #1 by jezhumble (2012-09-02 00:28:59+00:00)
Title: Add ability to hide locked pages from unauthorized users, both in the list of pages and in the dropdown to select parent pages.

I added a new option to the settings for this plug in. When this option - "Prevent unauthorized users from seeing locked pages" - is checked, locked pages do not appear in the list of pages for users without the SLT_LockPages capability. Also - with this option selected - users without this capability can only select unlocked pages to be the parent page of pages they can edit (and they also cannot create new top-level pages).

When the new option is not selected in the settings, the plug-in functions exactly the same way it did prior to this change.

The use case for this functionality is as follows: I wanted to allow people to view / edit only a subset of my pages, but I didn't want to install a complex authentication / authorization plug-in. It turns out this use case can be achieved with minimal changes to the existing Lock-Pages plug-in.