2 |
3 | {{ t('interfaces.inline-form-m2o.no-read-permission') }}
4 |
5 |
6 | {{ t('relationship_not_setup') }}
7 |
8 |
9 |
10 | {{ t('interfaces.inline-form-m2o.no-update-permission') }}
11 |
12 |
22 |
23 |
24 |
25 |
169 |
170 |
177 |
--------------------------------------------------------------------------------
/src/lang/en.yaml:
--------------------------------------------------------------------------------
1 | interfaces:
2 | inline-form-m2o:
3 | no-read-permission: You do not have permission to read this record.
4 | no-update-permission: You do not have permission to update this record.
5 |
--------------------------------------------------------------------------------
/src/shims.d.ts:
--------------------------------------------------------------------------------
1 | declare module '*.vue' {
2 | import { DefineComponent } from 'vue';
3 | const component: DefineComponent<{}, {}, any>;
4 | export default component;
5 | }
6 |
--------------------------------------------------------------------------------
/src/types/error.ts:
--------------------------------------------------------------------------------
1 | export type APIError = {
2 | message: string;
3 | extensions: {
4 | code: string;
5 | [key: string]: any;
6 | };
7 | };
8 |
--------------------------------------------------------------------------------
/src/types/index.ts:
--------------------------------------------------------------------------------
1 | export * from './error';
2 |
--------------------------------------------------------------------------------
/src/utils/is-allowed.ts:
--------------------------------------------------------------------------------
1 | import { useStores } from '@directus/extensions-sdk';
2 | import { FieldFilter, Permission } from '@directus/types';
3 | import { generateJoi } from '@directus/utils';
4 |
5 | export function isAllowed(
6 | collection: string,
7 | action: Permission['action'],
8 | value: Record