Profile Generator not saving roles and user access permissions.

ench0 - March 31, 2008 - 05:12
Project:Profile Generator
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Profile Generator not saving user access permissions.

#1

ench0 - April 7, 2008 - 20:06
Title:Profile Generator not saving user access permissions.» Profile Generator not saving roles and user access permissions.

Profile Generator needs to save user roles and access permissions.

#2

Jan van Diepen - September 11, 2008 - 10:10

Profile Generator is saving roles and user access permissions in the generated profile file. That's not a problem. During installation the saved roles and permissions are not correctly installed into the database. Reason is the order of operations. The function call "db_next_id('{role}_rid');" returns the wrong IDs because the authenticated user and anonymous user roles are not created yet. Having the above function call replaced by "$rid = db_next_id('{role}_rid') + 2;" or having the above roles created first should solve the problem. The permissions for your 3rd and 4th user roles are also stored, but for the 1st and 2nd user roles respectively.

 
 

Drupal is a registered trademark of Dries Buytaert.