delete_url_rel_user() function added when deleting an user. Updates the table access_url_rel_user

skala
Julio Montoya 15 years ago
parent f0bb95791a
commit 75ba570fbd
  1. 5
      main/inc/lib/usermanager.lib.php

@ -266,11 +266,14 @@ class UserManager
$url_id = api_get_current_access_url_id();
}
UrlManager::delete_url_rel_user($user_id, $url_id);
} else {
//we delete the user from the default url
UrlManager::delete_url_rel_user($user_id, 1);
}
if (api_get_setting('allow_social_tool')=='true' ) {
require_once api_get_path(LIBRARY_PATH).'social.lib.php';
//Delete user from groups
//@todo Delete user from groups
//Delete from user friend lists
SocialManager::remove_user_rel_user($user_id,true);

Loading…
Cancel
Save