← Back to team overview

phpdevshell team mailing list archive

[Bug 1118717] Re: userActions->userUpdate() and userActions->userAdd() gets called too early

 

Thanks a lot for your contribution. It seems a deep review of this part
of the code is needed. In fact, we plan to re-write the inner working of
authentication process. It will probably take a few weeks to have a new
one working, hopefully ready for version 4.0. If it fits your planning,
we'd be happy to collaborate with you on this.

greg

** Changed in: phpdevshell
   Importance: Undecided => Medium

** Changed in: phpdevshell
   Importance: Medium => High

** Changed in: phpdevshell
     Assignee: (unassigned) => Greg (gregfr)

-- 
You received this bug notification because you are a member of
PHPDevShell, which is subscribed to PHPDevShell.
https://bugs.launchpad.net/bugs/1118717

Title:
  userActions->userUpdate() and userActions->userAdd() gets called too
  early

Status in Open Source PHP RAD Framework with UI.:
  New

Bug description:
  Above mentioned methods get called after the user has been
  added/modified, but before the extra roles and extra groups are saved.

  To quickly test, add the following code to userActions->userUpdate()
  in /plugins/userActions/includes/userActions.class.php:

   $userId=$userArray->user_id;
   $this->db->cacheClear("roles_{$userId}");
   $this->db->cacheClear("groups_{$userId}");
   $user = $this->user;
   $userGroups = $user->getGroups($userArray->user_id);
   $userRoles = $user->getRoles($userArray->user_id);
   $this->debug->log("groups: ". $userGroups);
   $this->debug->log("roles: " . $userRoles);

  Now modify the extra groups or roles of a user.

To manage notifications about this bug go to:
https://bugs.launchpad.net/phpdevshell/+bug/1118717/+subscriptions


References