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

Inheriting permissions from LTI platform context #2868

Merged
merged 4 commits into from
Jan 9, 2025

Conversation

emmachughes
Copy link
Member

@emmachughes emmachughes commented Dec 16, 2024

Adds contextual permissions checking.

LTI platforms can have a context assigned to them with either the Reader, Editor, or Owner role. When Edlib is launched as an LTI tool, permissions are granted based on the platform's contexts.

Upon creating content during an LTI launch, each context is assigned to the content. The content must be assigned the relevant context for inherited permissions to be granted.

Existing content is not modified.

Finally, role checks for users are properly implemented now.

@github-actions github-actions bot added language All issues related to language and translation github_actions Pull requests that update Github_actions code Component: Hub The core of Edlib - handling search, filtering, my content and shared content labels Dec 16, 2024
@emmachughes emmachughes linked an issue Jan 2, 2025 that may be closed by this pull request
@emmachughes emmachughes force-pushed the content-contexts branch 2 times, most recently from 0ee76eb to 9adefe8 Compare January 6, 2025 14:32
@emmachughes emmachughes marked this pull request as ready for review January 8, 2025 11:55
@emmachughes emmachughes requested a review from chrieinv January 8, 2025 11:55
@emmachughes emmachughes merged commit 836ebdb into master Jan 9, 2025
5 checks passed
@emmachughes emmachughes deleted the content-contexts branch January 9, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Hub The core of Edlib - handling search, filtering, my content and shared content github_actions Pull requests that update Github_actions code language All issues related to language and translation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NDLA specific collaboration/organizational context
2 participants