User Access Manager
Conflict with custom types? (3 posts)

  1. sfhd
    Posted 5 years ago #

    I use the 'wiki' custom type (from the 'eSimple Wiki' plugin) on my site. After installing the UAM plugin, none of my users (including admin) was allowed any more to edit any of the wikis.

    Looking at the UAM code suggests that part of the problem is that custom type objects have no categories assigned to them (at least not without a further hack).

    I got everything working again by hacking 'UserAccessManager.class.php'. I modified the two respective passages with the 'wp_die' command as follows. The first (around line 942):

    if(get_the_category()) {
            if ($noRights) {

    And the second (around line 2076):

    if (is_post_type('wiki', $object->id)) {
          	$file = $object->file;
    } elseif ($this->getAccessHandler()->checkObjectAccess($object->type, $object->id)) {
                $file = $object->file;
    } elseif ($object->isImage) {
        		$file = UAM_REALPATH.'gfx/noAccessPic.png';
    } else {

    I didn't check whether the second hack was really necessary, but without the first, it definitely didn't work.

    Not very elegant coding, but it helps perhaps when adressing this issue in a future version. :-)


  2. GM_Alex
    Plugin Author

    Posted 5 years ago #

    Could you please try the developer version of the plugin, should be fixed now. You will find it here: http://downloads.wordpress.org/plugin/user-access-manager.zip

  3. sfhd
    Posted 5 years ago #

    Thanks, that seems to have done the job! :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Access Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic