Description
When a user creates a content library, they should automatically be granted the library_admin role for that library. This role corresponds to the existing ADMIN access level defined in the https://openedx.atlassian.net/wiki/spaces/OEPM/pages/5252317270/Libraries+Roles+and+Permissions+Migration+Plan ensuring consistent privileges between the legacy and new authorization systems.
The goal of this issue is to implement that automatic role assignment during library creation. This only covers the creation and assignment logic; the actual permission checks for library_admin and other roles will be handled in a separate issue and PR.
Acceptance Criteria
Description
When a user creates a content library, they should automatically be granted the library_admin role for that library. This role corresponds to the existing ADMIN access level defined in the https://openedx.atlassian.net/wiki/spaces/OEPM/pages/5252317270/Libraries+Roles+and+Permissions+Migration+Plan ensuring consistent privileges between the legacy and new authorization systems.
The goal of this issue is to implement that automatic role assignment during library creation. This only covers the creation and assignment logic; the actual permission checks for library_admin and other roles will be handled in a separate issue and PR.
Acceptance Criteria
library_adminrole for that library.library_admin) is granted upon library creation.