Skip to content
Snippets Groups Projects
Commit acb73a3d authored by Chris Hallberg's avatar Chris Hallberg Committed by Demian Katz
Browse files

Deleting users now deletes their resource tags.

parent c3cbfa74
Branches
Tags
No related merge requests found
......@@ -610,6 +610,8 @@ class User extends RowGateway implements \VuFind\Db\Table\DbTableAwareInterface,
$list = $table->getExisting($current->id);
$list->delete($this, true);
}
$resourceTags = $this->getDbTable('ResourceTags');
$resourceTags->destroyLinks(null, $this->id);
// Remove the user itself:
return parent::delete();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment