AccountSettings: list tags owned by current user

This commit is contained in:
2023-03-11 20:27:09 +01:00
parent daa8b051c5
commit a76dde927b
3 changed files with 56 additions and 0 deletions

View File

@@ -73,6 +73,11 @@ class AccountSettings extends HTMLController
$formview = new FormView($form, $form_title);
$this->page->adopt($formview);
// Fetch user tags
$tags = Tag::getAllByOwner($user->getUserId());
if (!empty($tags))
$this->page->adopt(new MyTagsView($tags));
// Left a message?
if (isset($_SESSION['account_msg']))
{