This commit is contained in:
parent
f7aeaa707f
commit
34542ce12f
|
@ -8,3 +8,9 @@ INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`
|
|||
(170, 'WorkerTimeControl', 'addTime', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(171, 'TicketServiceType', '*', 'WRITE', 'ALLOW', 'ROLE', 'administrative');
|
||||
|
||||
-- ONLY FOR ACL ALREADY ON PRODUCTION
|
||||
INSERT IGNORE INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
||||
VALUES
|
||||
(172, 'Sms', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(173, 'Sms', 'send', 'WRITE', 'ALLOW', 'ROLE', 'employee');
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ const UserError = require('vn-loopback/util/user-error');
|
|||
module.exports = Self => {
|
||||
Self.remoteMethodCtx('send', {
|
||||
description: 'Sends SMS to a destination phone',
|
||||
accessType: 'WRITE',
|
||||
accepts: [{
|
||||
arg: 'destinationFk',
|
||||
type: 'Integer'
|
||||
|
|
Loading…
Reference in New Issue