Merge pull request 'feat: refs #6822 ACL' (!3388) from 6822-entryTransferFix into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #3388 Reviewed-by: Pablo Natek <pablone@verdnatura.es>
This commit is contained in:
commit
7654a2e693
|
@ -1,5 +1,5 @@
|
||||||
DELIMITER $$
|
DELIMITER $$
|
||||||
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`entry_transfer`(
|
CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `vn`.`entry_transfer`(
|
||||||
vOriginalEntry INT,
|
vOriginalEntry INT,
|
||||||
OUT vNewEntryFk INT
|
OUT vNewEntryFk INT
|
||||||
)
|
)
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
INSERT IGNORE INTO salix.ACL (model, property, accessType, permission, principalType, principalId)
|
||||||
|
VALUES('Entry', 'transfer', 'WRITE', 'ALLOW', 'ROLE', 'coolerBoss');
|
|
@ -1,6 +1,7 @@
|
||||||
module.exports = Self => {
|
module.exports = Self => {
|
||||||
Self.remoteMethodCtx('transfer', {
|
Self.remoteMethodCtx('transfer', {
|
||||||
description: 'Transfer merchandise from one entry to the next day',
|
description: 'Transfer merchandise from one entry to the next day',
|
||||||
|
accessType: 'WRITE',
|
||||||
accepts: [
|
accepts: [
|
||||||
{
|
{
|
||||||
arg: 'id',
|
arg: 'id',
|
||||||
|
|
Loading…
Reference in New Issue