You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Note: this information will eventually come from the backend API
34
+
// but for the MVP we decided to manage it in the frontend
35
+
exportconstlibraryRolesMetadata=[
36
+
{
37
+
role: 'library_admin',name: 'Library Admin',description: 'The Library Admin has full control over the library, including managing users, modifying content, and handling publishing workflows. They ensure content is properly maintained and accessible as needed.',contextType: 'library',
38
+
},
39
+
{
40
+
role: 'library_author',name: 'Library Author',description: 'The Library Author is responsible for creating, editing, and publishing content within a library. They can manage tags and collections but cannot delete libraries or manage users.',contextType: 'library',
41
+
},
42
+
{
43
+
role: 'library_contributor',name: 'Library Contributor',description: 'The Library Contributor can create and edit content within a library but cannot publish it. They support the authoring process while leaving final publishing to Authors or Admins.',contextType: 'library',
44
+
},
45
+
{
46
+
role: 'library_user',name: 'Library User',description: 'The Library User can view and reuse content but cannot edit or delete any resource.',contextType: 'library',
47
+
},
48
+
];
49
+
50
+
exportconstlibraryResourceTypes=[
51
+
{key: 'library',label: 'Library',description: 'Permissions related to the library as a whole.'},
52
+
{key: 'library_content',label: 'Content',description: 'Permissions to create, edit, delete, and publish individual content items within the library.'},
53
+
{key: 'library_collection',label: 'Collection',description: 'Permissions to create, edit, and delete content collections within the library.'},
54
+
{key: 'library_team',label: 'Team',description: 'Permissions to manage user access and roles within the library.'},
55
+
];
56
+
57
+
exportconstlibraryPermissions=[
58
+
{key: CONTENT_LIBRARY_PERMISSIONS.DELETE_LIBRARY,resource: 'library',description: 'Allows the user to delete the library and all its contents.'},
59
+
{key: CONTENT_LIBRARY_PERMISSIONS.MANAGE_LIBRARY_TAGS,resource: 'library',description: 'Add or remove tags from content.'},
60
+
{key: CONTENT_LIBRARY_PERMISSIONS.VIEW_LIBRARY,resource: 'library',description: 'View content, search, filter, and sort within the library.'},
61
+
62
+
{key: CONTENT_LIBRARY_PERMISSIONS.EDIT_LIBRARY_CONTENT,resource: 'library_content',description: 'Edit content in draft mode'},
63
+
{key: CONTENT_LIBRARY_PERMISSIONS.PUBLISH_LIBRARY_CONTENT,resource: 'library_content',description: 'Publish content, making it available for reuse'},
64
+
{key: CONTENT_LIBRARY_PERMISSIONS.REUSE_LIBRARY_CONTENT,resource: 'library_content',description: 'Reuse published content within a course.'},
65
+
66
+
{key: CONTENT_LIBRARY_PERMISSIONS.CREATE_LIBRARY_COLLECTION,resource: 'library_collection',description: 'Create new collections within a library.'},
67
+
{key: CONTENT_LIBRARY_PERMISSIONS.EDIT_LIBRARY_COLLECTION,resource: 'library_collection',description: 'Add or remove content from existing collections.'},
68
+
{key: CONTENT_LIBRARY_PERMISSIONS.DELETE_LIBRARY_COLLECTION,resource: 'library_collection',description: 'Delete entire collections from the library.'},
69
+
70
+
{key: CONTENT_LIBRARY_PERMISSIONS.MANAGE_LIBRARY_TEAM,resource: 'library_team',description: 'View the list of users who have access to the library.'},
71
+
{key: CONTENT_LIBRARY_PERMISSIONS.VIEW_LIBRARY_TEAM,resource: 'library_team',description: 'Add, remove, and assign roles to users within the library.'},
// Note: this information will eventually come from the backend API
21
-
// but for the MVP we decided to manage it in the frontend
22
-
exportconstlibraryRolesMetadata: RoleMetadata[]=[
23
-
{role: 'library_admin',name: 'Library Admin',description: 'The Library Admin has full control over the library, including managing users, modifying content, and handling publishing workflows. They ensure content is properly maintained and accessible as needed.'},
24
-
{role: 'library_author',name: 'Library Author',description: 'The Library Author is responsible for creating, editing, and publishing content within a library. They can manage tags and collections but cannot delete libraries or manage users.'},
25
-
{role: 'library_contributor',name: 'Library Contributor',description: 'The Library Contributor can create and edit content within a library but cannot publish it. They support the authoring process while leaving final publishing to Authors or Admins.'},
26
-
{role: 'library_user',name: 'Library User',description: 'The Library User can view and reuse content but cannot edit or delete any resource.'},
{key: 'library',label: 'Library',description: 'Permissions related to the library as a whole.'},
31
-
{key: 'library_content',label: 'Content',description: 'Permissions to create, edit, delete, and publish individual content items within the library.'},
32
-
{key: 'library_collection',label: 'Collection',description: 'Permissions to create, edit, and delete content collections within the library.'},
33
-
{key: 'library_team',label: 'Team',description: 'Permissions to manage user access and roles within the library.'},
{key: CONTENT_LIBRARY_PERMISSIONS.DELETE_LIBRARY,resource: 'library',description: 'Allows the user to delete the library and all its contents.'},
38
-
{key: CONTENT_LIBRARY_PERMISSIONS.MANAGE_LIBRARY_TAGS,resource: 'library',description: 'Add or remove tags from content.'},
39
-
{key: CONTENT_LIBRARY_PERMISSIONS.VIEW_LIBRARY,resource: 'library',description: 'View content, search, filter, and sort within the library.'},
40
-
41
-
{key: CONTENT_LIBRARY_PERMISSIONS.EDIT_LIBRARY_CONTENT,resource: 'library_content',description: 'Edit content in draft mode'},
42
-
{key: CONTENT_LIBRARY_PERMISSIONS.PUBLISH_LIBRARY_CONTENT,resource: 'library_content',description: 'Publish content, making it available for reuse'},
43
-
{key: CONTENT_LIBRARY_PERMISSIONS.REUSE_LIBRARY_CONTENT,resource: 'library_content',description: 'Reuse published content within a course.'},
44
-
45
-
{key: CONTENT_LIBRARY_PERMISSIONS.CREATE_LIBRARY_COLLECTION,resource: 'library_collection',description: 'Create new collections within a library.'},
46
-
{key: CONTENT_LIBRARY_PERMISSIONS.EDIT_LIBRARY_COLLECTION,resource: 'library_collection',description: 'Add or remove content from existing collections.'},
47
-
{key: CONTENT_LIBRARY_PERMISSIONS.DELETE_LIBRARY_COLLECTION,resource: 'library_collection',description: 'Delete entire collections from the library.'},
48
-
49
-
{key: CONTENT_LIBRARY_PERMISSIONS.MANAGE_LIBRARY_TEAM,resource: 'library_team',description: 'View the list of users who have access to the library.'},
50
-
{key: CONTENT_LIBRARY_PERMISSIONS.VIEW_LIBRARY_TEAM,resource: 'library_team',description: 'Add, remove, and assign roles to users within the library.'},
0 commit comments