refs #6964 feat:advice for olderItem
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Sergio De la torre 2024-03-22 11:47:12 +01:00
parent c10e8d6733
commit 61b649fdc5
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
-- Place your SQL code here
INSERT INTO salix.ACL (model, property, accessType, permission, principalType, principalId)
VALUES('ItemShelving', 'hasItemOlder', 'READ', 'ALLOW', 'ROLE', 'production');

View File

@ -2,7 +2,7 @@ module.exports = Self => {
Self.remoteMethod('hasItemOlder', { Self.remoteMethod('hasItemOlder', {
description: description:
'Get boolean if any or specific item of the shelving has older created in another shelving or parking', 'Get boolean if any or specific item of the shelving has older created in another shelving or parking',
accessType: 'WRITE', accessType: 'READ',
accepts: [{ accepts: [{
arg: 'shelvingFkIn', arg: 'shelvingFkIn',
type: 'string', type: 'string',