Re-assign files to first non deleted admin user

This commit is contained in:
Lucas Bickel 2017-05-22 00:11:27 +02:00
parent 3233ccd151
commit 2ea19f20fe
2 changed files with 20 additions and 3 deletions

View file

@ -204,7 +204,7 @@ class UserController extends Zend_Controller_Action
# TODO : remove this. we only use default for now not to break the UI.
if (!$files_action) { # set default action
$files_action = "reassign_to";
$new_owner = Application_Model_User::getFirstAdmin();
$new_owner = Application_Model_User::getFirstAdmin($delId);
}
# only delete when valid action is selected for the owned files