Closed (works as designed)
Project:
Field Permissions
Version:
7.x-1.0-beta2
Component:
Miscellaneous
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Mar 2012 at 00:15 UTC
Updated:
24 Jul 2016 at 18:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dkingofpa commentedI see all my permissions in the role_permission table, but the module column is empty. As a test, I manually set up custom permissions for my field_alt_phone field. When I look in the table, the rows for that field now have "field_permissions" in the module column (see attached pic). It also now shows up on the permissions admin page. The other fields without the "field_permissions" value for the module column still don't work.
I think something is wrong with either the upgrade path instructions on the project page or the code in field_permissions_update_7001().
Comment #2
David_Rothstein commentedI'm not sure but I think this may be the problem:
If field_permissions_update_7001() already ran before the fields were migrated to D7, then it wouldn't have had any actual fields to update when it was run, so nothing would have happened.
Perhaps the order of those steps needs to be reversed?
Comment #3
ndevelder commentedFor anyone coming across this, David's response is correct.
The first time I upgraded, I installed D7 with all my needed modules in place, and so on the first database update (prior to re-enabling any modules), the field_permissions update was run along with all the others, but because content migration had not taken place, all fields ended up "public"
So in order for field permissions to be preserved, I had to:
1. Make the switch from content permissions to field permissions on the D6 site
2. Disable all contrib modules on D6
3. Download D7 core and all contrib modules EXCEPT field permissions
4. Run the D7 database update
5. Enable modules needed for field migration
6. Migrate fields
7. Download field permissions to modules folder
8. Run database update again (This time it took a while to run field permissions update 7001)
Comment #4
mariacha1 commentedSounds like this has been solved.