Skip to content

[Course Search] Restrict search results based on user permissions #198

Description

@bradenmacdonald

"As a course author, I want to control who can see my course content."

"As a library author, I want to control who can see my library content."

Requirements:

  1. Update the search code from [Course Search] Initial Integration of Studio Search Backend #195 so that searches are limited to those courses which users have permission to view.
  2. Should match how Studio interprets the permissions, handling things like org-level access correctly.

Notes:

  • The frontend will connect directly to Meilisearch, so it's necessary to encode the permissions for the user into a "restricted key" that users can use. The place to put this is here. It should probably look something like the following filter: org = "SomeOrg" OR context_key IN ["lib:...", "course-v1:...", ...] (for a user with org-level permissions on some org, and explicit permissions on some libraries and courses) (Update: see below - a different approach is likely required)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions