Closed GoogleCodeExporter closed 9 years ago
I'd vote for (1). Switching the role over for users should be possible with SQL.
Original comment by moyesyside
on 13 Jan 2014 at 1:58
Option 2 would be a more minor change, as it would not involve a bulk change
over of roles (SQL editing on live AUTH server) nor changing/checking of all
the existing ROLE code in the FC app (should be a simple matter of updating
conf file but not 100% sure all lookups are using the conf var). A possible
role name could be ROLE_FC_SYSADMIN.
Original comment by nickdos
on 13 Jan 2014 at 10:52
Went with option 1 - commit was for 11 files so it was a major refactor. Will
need to be tested on test server before migrating. All existing ROLE_FC_ADMIN
users will need to be given ROLE_FC_OFFICER in auth with SQL:
insert into user_role( user_id, role_id ) select user_id, "ROLE_FC_OFFICER"
from user_role where role_id = 'ROLE_FC_ADMIN'
Then after migration, ROLE_FC_ADMIN will be removed from everyone and then
added back to the few who need it (less than 10).
Original comment by nickdos
on 15 Jan 2014 at 4:50
delete from user_role where role_id = "ROLE_FC_OFFICER"
update user_role set role_id = "ROLE_FC_OFFICER" where role_id = "ROLE_FC_ADMIN"
Original comment by nickdos
on 16 Jan 2014 at 10:50
Original issue reported on code.google.com by
CoolDa...@gmail.com
on 6 Jan 2014 at 4:24