Closed (won't fix)
Project:
Flag
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Jun 2011 at 10:13 UTC
Updated:
10 Aug 2012 at 10:07 UTC
Jump to comment: Most recent
Comments
Comment #1
quicksketchA user can change a role name *at any time* (such as to change "admin" to "administrator" or some other innocent change), which makes this change seem like a step backwards. It seems that such a situation is just as common (if not more so) as users attempting to deal with different role IDs between environments.
Comment #2
justafishYes!
The reasoning was 2 things though. Firstly that Features exports roles as just names without IDs attached in both role and permission exports, and secondly that KIT specifies particularly named user roles that must be accounted for. Obviously that breaks down with additional roles and is only applicable to the Features module. Maybe Features should just be exporting Role IDs along with names...
Comment #3
lpalgarvio commentedi think that machine names or names is preferable to IDs.
Comment #4
quicksketchOkay, I'm reconsidering this change, but the patch looks incomplete. Just exporting as role names doesn't help with importing them again does it? I don't think this would work with our implementations of hook_flag_default_flags() either.
Comment #5
rylowry@gmail.com commentedI am having this problem in the 7.x version. I'm moving a feature with several flags between different environments. The ids are different in both environments, so the feature is not fully functional out of the box. Could the uuid module help in this situation?
Comment #6
nedjoI posted a related handbook documentation page, Exportables and user role IDs in features.
Comment #7
joachim commentedI think this might be a better solution: #1700134: move flag access out of the flag object storage and to regular user permissions.
That way, all modules solve the problem of exportable permissions in one go.
Comment #8
joachim commentedClosing as wontfix. I think the correct fix for this problem is to use permissions for flags.
Comment #9
lpalgarvio commentedthat would be better joachim =)