Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,16 @@ test.describe('Context Center Permissions', () => {
browser
);

articleEntity = new KnowledgeCenterClass({
displayName: `CC Permission Article ${uuid()}`,
name: `cc_permission_article_${uuid()}`,
});
// An article with no owner lets anyone set one (OrganizationPolicy-NoOwner-Rule),
// so own it to check that a user without EditOwners cannot change its owners.
const admin = await getLoggedInUser(apiContext);
articleEntity = new KnowledgeCenterClass(
{
displayName: `CC Permission Article ${uuid()}`,
name: `cc_permission_article_${uuid()}`,
},
[{ id: admin.id, type: 'user' }]
);
await articleEntity.create(apiContext);

await apiContext.post('/api/v1/contextCenter/drive/folders', {
Expand Down
Loading