User Permissions Plugin

Nov 1, 2006 | Tags: , , | Written by Administrator

User Permissions is a plugin that takes the simple WordPress permissions models one step further and allows you to assign permissions to specific posts that restrict users or roles from reading or editing it.

To summarize:

  • Restrict reading or writing of post or page according to the user's role (i.e. prevent non-registered users reading a post)
  • Allow specific users to read or write a post or page
  • Permissions are assigned directly inside the post itself - there is no additional interface
  • Fully localized

This plugin works very well with Red Alt's excellent Role Manager plugin. If you are interested in using permissions then you will probably be interested in that too.

Installation

The plugin is simple to install:

  1. Download user-permissions.zip
  2. Unzip
  3. Upload user-permissions directory to your /wp-content/plugins directory

You can find full details of installing a plugin on the plugin installation page.

Usage

Using the User Permissions is very simple. When you are editing a post or page a new form will appear to the right of the content:

Edit Box

When a role is enabled, all other roles are restricted. That is, if you give the administrator read and write access to a post then all other roles that are not enabled are restricted. If no roles are restricted then access is determined by the WordPress defaults.

The user section allows you to additionally specify user IDs (comma-separated) that are specifically allowed access. Any user listed here is allowed access, even if they are otherwise denied by their role.

If you restrict read access to a post then it is removed from the home page, search results, and archives, for anyone who does not have permissions. You can additionally define a post ID which will a restricted user will be redirected to should they attempt to view the post.

An administrator cannot be restricted.

Support

Please direct all support questions to the User Permissions support forum. Any support questions left on this page may not be answered.

Bugs & New Features

A full list of all bugs can be found in the User Permissions issue tracker.

A full list of all requested features can be found in the User Permissions feature tracker.

Share This

Comments (page 2 of 8)

  1. author
    Marcus :

    Aug 24, 2007 12:54 pm

    Can't seem to get the sidebar box to appear at all in WP 2.2.1 - anyone have a trick for this?

  2. Rich :

    Aug 20, 2007 8:25 am

    The plugin seems to want to work, but permissions do not get set upon saving a document via 'Manage Posts'.
    WP 2.2.1

  3. author
    alias :

    Aug 16, 2007 3:34 am

    this really looks like it should be built into wordpress, has anyone gotten it to work with the latest WP ?

    It's not displaying the permission box

  4. Cindy :

    Aug 14, 2007 4:07 pm

    To make the permissions affect Pages, add the following after line 178:

    case 'edit_pages':
    break;
    case 'edit_others_pages':
    $restrictions = $this->get_restrictions ($args[2]);
    if (is_object ($restrictions) && $restrictions->is_restricted ())
    $all['edit_others_pages'] = 0;
    break;

    This will work for Roles but the list of Users doesn't appear for me to add per-user restriction.

  5. author
    Tim :

    Aug 14, 2007 12:49 pm

    This is great. Its almost exactly what I need... almost

    Phil's hack worked for saving the permissions. Thanks.

    I need to allow specifiic users to be able to edit pages. Has anyone come up with a hack that will allow this?

    Thanks in advance!

  6. M.T. Nguyen :

    Jul 27, 2007 12:22 am

    Hmn...Just wondering if it would be better to have a 'user' drop-down list for "Subscriber" "Author" ... since some blog may have hundreds of registered users. An ajaxified minimize and maximize the users list would also be good =P.

  7. author
    Libby :

    Jul 12, 2007 8:09 am

    Yes, it doesnt work. It will not save the permissions that Ive selected. Each time I go back to the post, I can see that it has deleted my selections and revered back to ignore.

  8. Don :

    Mar 6, 2007 6:16 pm

    Role Manager is now being actively managed by Thomas Schneider at
    http://www.im-web-gefunden.de/wordpress-plugins/role-manager/

    Current version works with WP 2.1

  9. Bernd :

    Feb 1, 2007 4:13 am

    erm.. perhaps I didn't understand the purpose of this plugin right.
    I need to restrict specific pages and posts to certain Frontend(!) Users/Groups.

    And this plugin only restricts the use of pages and posts for backend users? Sorry for this misunderstanding.
    ..hmm...isn't it somehow possible to transfer this model to frontend users as well?

    Bernd

  10. Bernd :

    Jan 26, 2007 6:16 am

    argh. this is driving me crazy because this plugin seems to be perfect. it just don't work!
    I tried Phil Newston's hint "line190: return unserialize(unserialize($row->meta_value));" in fact it made the permission settings save correctly. unfortunately this just hast no effect.

    a page with a permission (ALLOW) for one special usergroup can still be seen by anyone ... :( is it because auf my wordpress version? (2.0.7 - german as the 2.1 didn't work with "Role Manager")?

    It would be great if anyone had an idea to solve this!
    :) Bernd

Home | Software | Terms & Conditions | Sitemap | John Godley © 2008