Skip to content

Commit

Permalink
Delete user files in /data/ after deleting a user
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasReschke committed Oct 16, 2012
1 parent 012ea1e commit 379b775
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ public static function deleteUser( $uid ) {
}
// Delete the user's keys in preferences
OC_Preferences::deleteUser($uid);

// Delete user files in /data/
OC_Helper::rmdirr(OC_Config::getValue( "datadirectory", OC::$SERVERROOT."/data" ) . '/'.$uid.'/');

// Emit and exit
OC_Hook::emit( "OC_User", "post_deleteUser", array( "uid" => $uid ));
return true;
Expand Down

0 comments on commit 379b775

Please sign in to comment.