Skip to content

Add permission functions into user-management#95

Merged
OgreSound merged 2 commits into
mainfrom
feature/permissions
May 30, 2026
Merged

Add permission functions into user-management#95
OgreSound merged 2 commits into
mainfrom
feature/permissions

Conversation

@pejuam
Copy link
Copy Markdown
Contributor

@pejuam pejuam commented May 29, 2026

No description provided.

return (
isPrincipal(user, options) ||
userPermissions(user, options).find(
permission => permission.startsWith('application-') || permission.startsWith('notification-')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pitäisikö tämä olla myös tietorakennetta käyttäen, että muodostaa kaikki arvot applications ja notifications alta ja tarkistaa löytyykö permission siitä listasta

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Joo, hyvä idea. Kopioin toteutuksen muualta, niin en tullut ajatelleeksi.

@pejuam pejuam force-pushed the feature/permissions branch from a0f4fbe to 9e4c3e2 Compare May 29, 2026 12:34
@OgreSound OgreSound force-pushed the feature/permissions branch from bb77119 to 00a292d Compare May 30, 2026 21:57
@OgreSound OgreSound merged commit 4a55faf into main May 30, 2026
6 checks passed
@OgreSound OgreSound deleted the feature/permissions branch May 30, 2026 22:00
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.

2 participants