Closed (fixed)
Project:
HTPasswd Sync
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
21 Oct 2009 at 20:50 UTC
Updated:
9 Jul 2011 at 06:42 UTC
Groups file are not updated if user added with admin/user/user/create
During edit with user/%uid/edit or cron.php run groups file is updated.
Comments
Comment #1
karchie1 commentedhaving the same problem
Comment #2
m.fu commentedLooking into it.
Comment #3
m.fu commentedused a workaround, now update group file when the user information is user load hook which is executed after saving the data.
The after_update in not called at the right time and the user add hook is executed before the groups/roles are updated.
Comment #4
fasdalf@fasdalf.ru commentedThanks a lot for your work!
I would say, user_load is called very often. For user profile at least and even for comment's author display in some themes, approximately once for every user, mentioned on the page. Each time hook_user() is called with $op=load
So i suggest to use somethinng like that
IMHO this version works faster, because variables are loaded in one query during drupal bootstrap.
Comment #5
m.fu commentedFixed in 6.x-1.6-rc1