Ignore:
Timestamp:
Jan 8, 2005, 12:23:52 PM (19 years ago)
Author:
plg
Message:
  • deletion of calculated permissions when deleting a user
  • taking into account locked categories during permissions calculation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r675 r680  
    322322//     - all the favorites linked to this user
    323323//     - all sessions linked to this user
    324 //     - all categories informations linked to this user
     324//     - calculated permissions linked to the user
    325325function delete_user($user_id)
    326326{
     
    349349  $query = '
    350350DELETE FROM '.SESSIONS_TABLE.'
     351  WHERE user_id = '.$user_id.'
     352;';
     353  pwg_query($query);
     354
     355  // deletion of calculated permissions linked to the user
     356  $query = '
     357DELETE FROM '.USER_FORBIDDEN_TABLE.'
    351358  WHERE user_id = '.$user_id.'
    352359;';
Note: See TracChangeset for help on using the changeset viewer.