Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Permission based rendering #303

Merged
merged 10 commits into from
Dec 10, 2024
Merged

Conversation

SuperVK
Copy link
Member

@SuperVK SuperVK commented Aug 14, 2024

Render buttons and actions based on if they are actually allowed by the roles. See #265

Description

Adds a helper function that can figure out what permissions somebody has. And applies to the product/containers, pos and the menu bar.

Other views can be added later in the same way.

image
image

Related issues/external references

#265

Types of changes

  • New feature (non-breaking change which adds functionality)

@SuperVK SuperVK marked this pull request as draft August 18, 2024 18:08
@SuperVK SuperVK force-pushed the feature/permission-rendering branch from 2101a6c to 39e91c2 Compare September 29, 2024 11:57
@SuperVK SuperVK force-pushed the feature/permission-rendering branch from f1f9f65 to 2fa703d Compare October 21, 2024 09:03
@SuperVK SuperVK force-pushed the feature/permission-rendering branch from 2fa703d to bc7137a Compare December 1, 2024 12:27
@SuperVK SuperVK marked this pull request as ready for review December 1, 2024 13:05
@SuperVK SuperVK force-pushed the feature/permission-rendering branch from 4774655 to 9df77c1 Compare December 1, 2024 13:21
@SuperVK SuperVK requested a review from JustSamuel December 1, 2024 13:28
@SuperVK SuperVK linked an issue Dec 1, 2024 that may be closed by this pull request
Copy link
Contributor

@JustSamuel JustSamuel left a comment

Choose a reason for hiding this comment

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

small nits

@SuperVK SuperVK force-pushed the feature/permission-rendering branch from 1c00662 to 7258ea9 Compare December 10, 2024 14:23
@SuperVK SuperVK merged commit 298207b into develop Dec 10, 2024
2 checks passed
@SuperVK SuperVK deleted the feature/permission-rendering branch December 10, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Refactor] Permissions based rendering per component
2 participants