Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Add a customisation point for widget permissions and fix amnesia issues#5439

Merged
turt2live merged 2 commits into
developfrom
travis/caps2
Nov 24, 2020
Merged

Add a customisation point for widget permissions and fix amnesia issues#5439
turt2live merged 2 commits into
developfrom
travis/caps2

Conversation

@turt2live
Copy link
Copy Markdown
Member

The "remember my selection" option wasn't working because the missing set still included the approved permission. Solution: remove it from missing.

The customisation point is to allow forks to change which widgets get which additional capabilities dependent on their own rules.

The "remember my selection" option wasn't working because the `missing` set still included the approved permission. Solution: remove it from `missing`.

The customisation point is to allow forks to change which widgets get which additional capabilities dependent on their own rules.
@turt2live turt2live requested a review from a team November 23, 2020 19:02
Copy link
Copy Markdown
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good to me! 😄

// them all as optional. This allows customisers to only define and export the
// customisations they need while still maintaining type safety.
export interface IWidgetPermissionCustomisations {
preapproveCapabilities?: typeof preapproveCapabilities;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, a good use of typeof indeed. 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants