Skip to content

refactor: centralize virtue button authorization - #3313

Merged
mkmccarty merged 1 commit into
mainfrom
mm-branch-1
Nov 14, 2026
Merged

mkmccarty merged 1 commit into
mainfrom
mm-branch-1

Conversation

@mkmccarty

Copy link
Copy Markdown
Owner

Introduce canControlVirtueTarget to encapsulate the permission logic for
virtue component actions. It allows the target user, configured
AltController, act-as linked users, or effective user resolution via
farmerstate. Update HandleVirtueDismiss and other virtue handlers to use
this helper, reducing duplication and ensuring consistent authorization
behavior across all virtue buttons.

Introduce canControlVirtueTarget to encapsulate the permission logic for
virtue component actions. It allows the target user, configured
AltController, act-as linked users, or effective user resolution via
farmerstate. Update HandleVirtueDismiss and other virtue handlers to use
this helper, reducing duplication and ensuring consistent authorization
behavior across all virtue buttons.
@mkmccarty
mkmccarty merged commit b55de11 into main Nov 14, 2026
14 checks passed
@mkmccarty
mkmccarty deleted the mm-branch-1 branch November 14, 2026 15:46
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