Merge pull request 'feat: refs #7943 quitar lectura en metodos comunes' (!3136) from 7943-permisosWorker into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #3136 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
2f5f4ecc7c
|
@ -4,5 +4,8 @@ CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `salix`.`ACL_beforeInsert`
|
|||
FOR EACH ROW
|
||||
BEGIN
|
||||
SET NEW.editorFk = account.myUser_getId();
|
||||
IF NEW.`property` = '*' THEN
|
||||
CALL util.throw('The property field cannot be *');
|
||||
END IF;
|
||||
END$$
|
||||
DELIMITER ;
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
DELETE FROM `salix`.`ACL`
|
||||
WHERE `model` = 'Worker'
|
||||
AND `property` IN ('find', 'findById', 'findOne');
|
|
@ -24,8 +24,8 @@
|
|||
<vn-autocomplete
|
||||
label="Worker"
|
||||
ng-model="$ctrl.itemType.workerFk"
|
||||
url="Workers"
|
||||
show-field="firstName"
|
||||
url="Workers/search"
|
||||
show-field="nickname"
|
||||
value-field="id"
|
||||
rule>
|
||||
</vn-autocomplete>
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
<vn-autocomplete
|
||||
label="Worker"
|
||||
ng-model="$ctrl.itemType.workerFk"
|
||||
url="Workers"
|
||||
show-field="firstName"
|
||||
url="Workers/search"
|
||||
show-field="nickname"
|
||||
value-field="id"
|
||||
rule>
|
||||
</vn-autocomplete>
|
||||
|
|
Loading…
Reference in New Issue