From 2cf37a9e968d848f792f86eab1e209049c2b17d9 Mon Sep 17 00:00:00 2001 From: Jorge Padawan Date: Wed, 10 Feb 2021 09:10:15 +0100 Subject: [PATCH 1/2] Added permissions to role administrative --- db/changes/10280-valentineDay/00-EntryAddPermissions.sql | 1 + modules/entry/front/routes.json | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 db/changes/10280-valentineDay/00-EntryAddPermissions.sql diff --git a/db/changes/10280-valentineDay/00-EntryAddPermissions.sql b/db/changes/10280-valentineDay/00-EntryAddPermissions.sql new file mode 100644 index 000000000..d3b02fc2d --- /dev/null +++ b/db/changes/10280-valentineDay/00-EntryAddPermissions.sql @@ -0,0 +1 @@ +INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES ('Entry', '*', '*', 'ALLOW', 'ROLE', 'administrative'); diff --git a/modules/entry/front/routes.json b/modules/entry/front/routes.json index db12e95fd..1911f721c 100644 --- a/modules/entry/front/routes.json +++ b/modules/entry/front/routes.json @@ -31,19 +31,19 @@ "state": "entry.index", "component": "vn-entry-index", "description": "Entries", - "acl": ["buyer"] + "acl": ["buyer", "administrative"] }, { "url": "/latest-buys?q", "state": "entry.latestBuys", "component": "vn-entry-latest-buys", "description": "Latest buys", - "acl": ["buyer"] + "acl": ["buyer", "administrative"] }, { "url": "/create?supplierFk&travelFk&companyFk", "state": "entry.create", "component": "vn-entry-create", "description": "New entry", - "acl": ["buyer"] + "acl": ["buyer", "administrative"] }, { "url": "/:id", "state": "entry.card", -- 2.40.1 From 86580727e573df2568e9f1bca77fcba502e9d960 Mon Sep 17 00:00:00 2001 From: Jorge Padawan Date: Fri, 12 Feb 2021 11:47:53 +0100 Subject: [PATCH 2/2] Requested changes resolved --- db/changes/10280-valentineDay/00-EntryAddPermissions.sql | 1 - db/changes/10281-valentineDay/00-ACL.sql | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) delete mode 100644 db/changes/10280-valentineDay/00-EntryAddPermissions.sql create mode 100644 db/changes/10281-valentineDay/00-ACL.sql diff --git a/db/changes/10280-valentineDay/00-EntryAddPermissions.sql b/db/changes/10280-valentineDay/00-EntryAddPermissions.sql deleted file mode 100644 index d3b02fc2d..000000000 --- a/db/changes/10280-valentineDay/00-EntryAddPermissions.sql +++ /dev/null @@ -1 +0,0 @@ -INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES ('Entry', '*', '*', 'ALLOW', 'ROLE', 'administrative'); diff --git a/db/changes/10281-valentineDay/00-ACL.sql b/db/changes/10281-valentineDay/00-ACL.sql new file mode 100644 index 000000000..41626d4d6 --- /dev/null +++ b/db/changes/10281-valentineDay/00-ACL.sql @@ -0,0 +1,3 @@ +INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) + VALUES + ('Entry', '*', '*', 'ALLOW', 'ROLE', 'administrative'); -- 2.40.1