Project:User Import Organic Groups
Version:6.x-1.1
Component:Code
Category:bug report
Priority:critical
Assigned:Robert Castelo
Status:needs review

Issue Summary

It appears that either am making a mistake or User Import OG module has a permission issue.

I created a account, "Admin", which has full permission. However, I am unable to see the "user import" fieldset on the content type form. However, if I log in as user 1, I can see it. I checked the module code, and it appears that the "user import" fieldset on the content type form is using the permission "administer user_import", which does not appear in the permissions list.

Below is a snippet of code starting at line 320 from the user_import_og.module

    $form['user_import'] = array(
      '#type' => 'fieldset',
      '#title' => t('User Import'),
      '#collapsible' => TRUE,
      '#collapsed' => TRUE,
      '#access' => user_access('administer user_import'),
      '#description' => $help,
    );

On another note, I have found this module to be a incredibly useful asset to the OG module. Excellent work.

Comments

#1

Assigned to:Anonymous» Robert Castelo

Thanks, well spotted.

I'll fix that in the next release of the User Import module.

#2

Status:active» needs review

I've attached a patch.

AttachmentSize
user_import_og-467162.patch 672 bytes

#3

Fixed in 6.x-1.x-dev.

Don't have time to test right now, will create a tagged release once tested.