task-i
This commit is contained in:
@@ -21,7 +21,9 @@ const PDF_PERMISSIONS = [
|
||||
'crm.quotation.document.preview',
|
||||
'crm.quotation.pdf.preview',
|
||||
'crm.quotation.pdf.download',
|
||||
'crm.quotation.pdf.generate_approved'
|
||||
'crm.quotation.pdf.generate_approved',
|
||||
'crm.document_artifact.read',
|
||||
'crm.document_artifact.download'
|
||||
];
|
||||
|
||||
function loadEnvFile(filePath) {
|
||||
@@ -886,7 +888,7 @@ async function main() {
|
||||
const users = {
|
||||
admin: await ensureUser(sql, organization, creatorId, FIXTURE_USERS.admin, 'Task H.1 Admin', {
|
||||
role: 'admin',
|
||||
businessRole: 'it_admin',
|
||||
businessRole: 'sales_manager',
|
||||
permissions: [...PDF_PERMISSIONS, 'users:manage']
|
||||
}),
|
||||
pdfUser: await ensureUser(
|
||||
@@ -897,13 +899,13 @@ async function main() {
|
||||
'Task H.1 PDF User',
|
||||
{
|
||||
role: 'user',
|
||||
businessRole: 'viewer',
|
||||
businessRole: 'sales_support',
|
||||
permissions: PDF_PERMISSIONS
|
||||
}
|
||||
),
|
||||
viewer: await ensureUser(sql, organization, creatorId, FIXTURE_USERS.viewer, 'Task H.1 Viewer', {
|
||||
role: 'user',
|
||||
businessRole: 'viewer',
|
||||
businessRole: 'sales_support',
|
||||
permissions: ['crm.quotation.read']
|
||||
})
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user