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 |
Jump to:
Description
Profile Generator not saving user access permissions.

#1
Profile Generator needs to save user roles and access permissions.
#2
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.