Skip to content

[report 2297] GROK-20771: PowerPack: Route every current-user-group lookup through getCurrentUserGroup() and handle an unavailable group instead of dereferencing it - #3996

Merged
LaykDimon merged 1 commit into
masterfrom
claude/GROK-20771
Aug 27, 2026
Merged

Conversation

@datagrokci

@datagrokci datagrokci Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

When the current user's group could not be retrieved, grok.dapi.groups.find resolved to null and PowerPack dereferenced it as a non-nullable group in three places, throwing at startup and leaving the home page's dashboard widgets panel empty.

All three sites now share the existing getCurrentUserGroup() helper, which resolves null on a failed lookup (and does not cache the failure), so widgets without a canView restriction still render and permission-gated ones fail closed.


Diff: +30/-12 · 4 files

Verified: reproduction recipe replayed on the patched build — the original error no longer fires

Full analysis: GROK-20771

…getCurrentUserGroup() and handle an unavailable group instead of dereferencing it
@datagrokci
datagrokci Bot requested a review from skalkin August 25, 2026 12:13
@LaykDimon
LaykDimon merged commit 8742235 into master Aug 27, 2026
12 of 18 checks passed
@LaykDimon
LaykDimon deleted the claude/GROK-20771 branch August 27, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant