Page Whitelists

April 05, 2019

Page Whitelists Plugin

NOTICE: This plugin is no longer in active development. Limit user access only to selected ("whitelisted") pages by creating whitelists and …

NOTICE: This plugin is no longer in active development.

I no longer use this plugin in any way and don’t plan to work on it further. You can of course continue to use it, just be aware that I will not offer any support or fix any bugs. You’re also welcome to fork it on GitHub and base your own plugin on it.

Page Whitelists is an administration tool that can be used to allow selected users to edit only certain pages, leaving the rest inaccessible. Using this plugin, you can let user edit only a single page (or a handful of them), while the rest of the content is out of sight. Typical use cases would be a dynamic, shortcode-heavy sites with content that still needs to be edited by inexperienced users (i.e. an ‘About us’ section), or a company website whith multiple administrators each maintaining their own section.

To use this plugin, you create “whitelists” and assign them to users and/or roles. Each whitelist can also alow/deny users to create additional pages. Every page, user and role can belong to multiple whitelists. The user sees only the pages they are allowed to edit – reducing confusion and clutter on the Page listing.

This plugin was written as a light-weight replacement for the whitelisting functionality of Role Scoper.

4.0.2

NOTICE: This plugin is no longer in active development.

4.0.1

Version upgrade error – this is the working version.

4.0.0

Major version upgrade.

3.0.3

Fixes a compatibility bug between NextGen Gallery and strict whitelists. Update recommended if you use the plugin and the feature together.

3.0.2

Fixes a bug resulting in Fatal error on the Edit User page (missing file profile_field.php). Update strongly recomended.

3.0.1

Fixes a bug which blocked creation of new posts for users in strict whitelists. Update necessary. I am very sorry for the inconvenience.

3.0.0

Fixes possible conflicts with page creating plugins, adds new GUI options. Update recomended.

2.0

Fixes a conflict between Page Whitelists and the Nextgen Gallery plugin.

1.2

Version fixes a bug in the non-strict whitelist functionality. Update recomended.

1.0

First published version.

Installation

  1. Install and activate like any other plugin.
  2. Create a whitelist in Users->Maintain Whitelists.
  3. Add users/roles and pages to it.

You can also add page to a whitelist when editing it in Page Editor, or a user through User Editor. Additional (default) plugin settings can be edited in Settings->Page Whitelists.

FAQ

What happens when user is assigned more than one whitelist?

Whitelists are additive – every user has access to all pages in all whitelists they’re assigned to. ‘Strict’ whitelists have priority – once a user is assigned to a whitelist that disables creation of new pages, they are not allowed to do so (even if other whitelists are ‘non-strict’).

I set up Page Whitelists, but my users still can’t access Pages. What’s happening?

This is most likely caused by a missing capability ‘edit-pages’. Page Whitelists is substractive, so the user must have access to all pages first. This can happen if you previously used another access manager, especially Role Scoper, and it didn’t reset the capabilities properly when uninstalling.
You can fix that easily with any plugin that can edit user roles (for example User Role Editor).

Advanced: I need the most recent code of this plugin. Where can I find it?

Github: https://github.com/corvidism/page-whitelists Like many other WP plugin developers, I primarily use git for versioning, so this is the most recent version of the plugin. If you ever wanted to make modifications to the code, I recommend using files from the Github repo.

Changelog

= 4.0.2=
Last version.

4.0.0

New – pages in Whitelist editor are now arranged in a tree, so parent-child branches can be selected simultaneously.
New – names and links to assigned pages in the Whitelist table.
New – new plugin options controlling default behavior of whitelists and scope of filtering. Whitelist management was moved under Users, the Page Whitelists page under Settings now contains default plugin settings.
Numerous bug fixes.

3.0.3

Bug fix – fixed compatibility issues with NextGen Gallery – creating albums when user is assigned to a strict whitelist.
Enhancement – less log messages when WP_Debug is on.

3.0.2

Bug fix – missing file wp-content/plugins/page-whitelists/templates/profile_field.php causes Fatal Error on Edit User page.

3.0.1

Bug fix – setting strict whitelist also blocked creation of new posts (creator-introduced bug, I am very sorry)

3.0.0

Bug fix – fixed an issue with plugins that allow creation of pages
Plugin compatibility fix – Tree Page View.
New – column with assigned whitelists in User Table
New – field on User Profile editor
New – select all/none pages when creating/editing whitelist.

2.0

Bug fix – plugin now doesn’t throw error on screen-less admin pages (various AJAX helpers for plugins etc.)
New – plugin now filters all backend queries that request pages (usually by other plugins) including those made by AJAX.

1.2

Bug fix – automatic addition of newly created pages to non-strict whitelists now works.

Details

  • Version: 4.0.2
  • Active installations: 100
  • WordPress Version: 3.6
  • Tested up to: 4.6.29

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars