mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 03:25:57 +00:00
fix: acl permission check issue for 'Delete Event' action (#5002)
Some checks are pending
auto-merge / push-commit (push) Waiting to run
Build Docker Image / build-and-push (push) Waiting to run
Build Pro Image / build-and-push (push) Waiting to run
deploy client docs / Build (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase Backend Test / sqlite-test (20, false) (push) Waiting to run
NocoBase Backend Test / sqlite-test (20, true) (push) Waiting to run
NocoBase Backend Test / postgres-test (public, 20, nocobase, false) (push) Waiting to run
NocoBase Backend Test / postgres-test (public, 20, nocobase, true) (push) Waiting to run
NocoBase Backend Test / postgres-test (public, 20, public, false) (push) Waiting to run
NocoBase Backend Test / postgres-test (public, 20, public, true) (push) Waiting to run
NocoBase Backend Test / postgres-test (user_schema, 20, nocobase, false) (push) Waiting to run
NocoBase Backend Test / postgres-test (user_schema, 20, nocobase, true) (push) Waiting to run
NocoBase Backend Test / postgres-test (user_schema, 20, public, false) (push) Waiting to run
NocoBase Backend Test / postgres-test (user_schema, 20, public, true) (push) Waiting to run
NocoBase Backend Test / mysql-test (20, false) (push) Waiting to run
NocoBase Backend Test / mysql-test (20, true) (push) Waiting to run
NocoBase Backend Test / mariadb-test (20, false) (push) Waiting to run
NocoBase Backend Test / mariadb-test (20, true) (push) Waiting to run
NocoBase FrontEnd Test / frontend-test (18) (push) Waiting to run
Test on Windows / build (push) Waiting to run
Some checks are pending
auto-merge / push-commit (push) Waiting to run
Build Docker Image / build-and-push (push) Waiting to run
Build Pro Image / build-and-push (push) Waiting to run
deploy client docs / Build (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase Backend Test / sqlite-test (20, false) (push) Waiting to run
NocoBase Backend Test / sqlite-test (20, true) (push) Waiting to run
NocoBase Backend Test / postgres-test (public, 20, nocobase, false) (push) Waiting to run
NocoBase Backend Test / postgres-test (public, 20, nocobase, true) (push) Waiting to run
NocoBase Backend Test / postgres-test (public, 20, public, false) (push) Waiting to run
NocoBase Backend Test / postgres-test (public, 20, public, true) (push) Waiting to run
NocoBase Backend Test / postgres-test (user_schema, 20, nocobase, false) (push) Waiting to run
NocoBase Backend Test / postgres-test (user_schema, 20, nocobase, true) (push) Waiting to run
NocoBase Backend Test / postgres-test (user_schema, 20, public, false) (push) Waiting to run
NocoBase Backend Test / postgres-test (user_schema, 20, public, true) (push) Waiting to run
NocoBase Backend Test / mysql-test (20, false) (push) Waiting to run
NocoBase Backend Test / mysql-test (20, true) (push) Waiting to run
NocoBase Backend Test / mariadb-test (20, false) (push) Waiting to run
NocoBase Backend Test / mariadb-test (20, true) (push) Waiting to run
NocoBase FrontEnd Test / frontend-test (18) (push) Waiting to run
Test on Windows / build (push) Waiting to run
* fix: delete Event action acl check * chore: delete vent action
This commit is contained in:
parent
0bfcfadc4d
commit
9df48ef0a1
@ -19,7 +19,6 @@ export * from './CreateFilterActionInitializer';
|
||||
export * from './CreateResetActionInitializer';
|
||||
export * from './CustomizeActionInitializer';
|
||||
export * from './DataBlockInitializer';
|
||||
export * from './DeleteEventActionInitializer';
|
||||
export * from './G2PlotInitializer';
|
||||
export * from './InitializerWithSwitch';
|
||||
export * from './RecordAssociationBlockInitializer';
|
||||
|
@ -9,11 +9,11 @@
|
||||
|
||||
import { SchemaInitializer, SchemaInitializerItemType, useCollection_deprecated } from '@nocobase/client';
|
||||
import { generateNTemplate } from '../../../locale';
|
||||
|
||||
import { DeleteEventActionInitializer } from '../items/DeleteEventActionInitializer';
|
||||
export const deleteEventActionInitializer: SchemaInitializerItemType<any> = {
|
||||
name: 'deleteEvent',
|
||||
title: generateNTemplate('Delete Event'),
|
||||
Component: 'DeleteEventActionInitializer',
|
||||
Component: DeleteEventActionInitializer,
|
||||
schema: {
|
||||
'x-component': 'Action',
|
||||
'x-decorator': 'ACLActionProvider',
|
||||
|
@ -8,12 +8,13 @@
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { ActionInitializerItem } from './ActionInitializerItem';
|
||||
import { ActionInitializerItem } from '@nocobase/client';
|
||||
|
||||
export const DeleteEventActionInitializer = (props) => {
|
||||
const schema = {
|
||||
title: '{{ t("Delete Event") }}',
|
||||
'x-action': 'deleteEvent',
|
||||
'x-acl-action': 'destroy',
|
||||
'x-component': 'Action',
|
||||
'x-designer': 'Action.Designer',
|
||||
'x-component-props': {
|
@ -9,3 +9,4 @@
|
||||
|
||||
export * from './CalendarBlockInitializer';
|
||||
export * from './RecordAssociationCalendarBlockInitializer';
|
||||
export * from './DeleteEventActionInitializer';
|
||||
|
Loading…
Reference in New Issue
Block a user