Files
directus/tests/setup/seeds/03_directus_roles.js
Brainslug 6f2d22704e Field permissions and relational interfaces (#13623)
* 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
2022-05-31 10:05:40 -04:00

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 },
]);
};