mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
* quick fix ignoring fields wrapped in $FOLLOW when checking permissions * checking related permissions for $FOLLOW filter * moved $FOLLOW logic to extractRequiredFieldPermissions * initial attempt at making e2e test for this issue * moved test to many-to-many.test.ts * added permissions for the test * created new user and role for these tests * broadened the expected matching object * only expecting name as the id field UUID was giving inconsistent uppercased results with mssql
9 lines
454 B
JavaScript
9 lines
454 B
JavaScript
exports.seed = async function (knex) {
|
|
await knex('directus_roles').del();
|
|
return await knex('directus_roles').insert([
|
|
{ id: '5b935e65-d3db-4457-96f1-597e2fcfc7f3', name: 'TestAdmin', admin_access: true, app_access: true },
|
|
{ id: '214faee7-d6a6-4a4c-b1cd-f9e9bd0b6fb7', name: 'TestUser', admin_access: false, app_access: false },
|
|
{ id: '67ce831d-7a02-4a06-a8c9-c8ea16d71e91', name: 'TestUser2', admin_access: false, app_access: false },
|
|
]);
|
|
};
|