Skip to content

BackgroundTasks: Skip BT aggregates for anonymous - #12311

Open
thojou wants to merge 1 commit into
ILIAS-eLearning:trunkfrom
thojou:bg/12/45683
Open

thojou wants to merge 1 commit into
ILIAS-eLearning:trunkfrom
thojou:bg/12/45683

Conversation

@thojou

@thojou thojou commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Original: #12106

See: https://mantis.ilias.de/view.php?id=45683

The background-task popover loaded bucket lists for every session, including anonymous users without persistent tasks. ilBTPopOverGUI::getAggregateItems now returns an empty array when the user id is ANONYMOUS_USER_ID. The running-task refresh hook was rewritten as a static closure with a heredoc so il.BGTask.refreshItem receives the notification item directly.

(cherry picked from commit bad14e7)

See: https://mantis.ilias.de/view.php?id=45683

The background-task popover loaded bucket lists for every session, including anonymous users without persistent tasks. `ilBTPopOverGUI::getAggregateItems` now returns an empty array when the user id is `ANONYMOUS_USER_ID`. The running-task refresh hook was rewritten as a static closure with a heredoc so `il.BGTask.refreshItem` receives the notification item directly.

(cherry picked from commit bad14e7)
@thojou thojou added bugfix php Pull requests that update Php code labels Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants