feat: refs #7943 quitar lectura en metodos comunes #3136
|
@ -4,5 +4,8 @@ CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `salix`.`ACL_beforeInsert`
|
||||||
FOR EACH ROW
|
FOR EACH ROW
|
||||||
BEGIN
|
BEGIN
|
||||||
SET NEW.editorFk = account.myUser_getId();
|
SET NEW.editorFk = account.myUser_getId();
|
||||||
|
IF NEW.`property` = '*' THEN
|
||||||
|
CALL util.throw('The property field cannot be *');
|
||||||
|
|||||||
|
END IF;
|
||||||
END$$
|
END$$
|
||||||
DELIMITER ;
|
DELIMITER ;
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
DELETE FROM `salix`.`ACL`
|
||||||
|
WHERE `model` = 'Worker'
|
||||||
|
AND `property` IN ('find', 'findById', 'findOne');
|
||||||
jgallego
commented
jo he preguntat a Sergio i ja ho ha llevat, i en lilium i en salix no es gasten ni en access, no se si cal mirar en altre lloc jo he preguntat a Sergio i ja ho ha llevat, i en lilium i en salix no es gasten ni en access, no se si cal mirar en altre lloc
alexm
commented
Son quan crides a Workers, Workers/:id Aci (baix de tot) estan les equivalencies https://loopback.io/doc/en/lb2/Controlling-data-access.html Son quan crides a Workers, Workers/:id
Aci (baix de tot) estan les equivalencies https://loopback.io/doc/en/lb2/Controlling-data-access.html
alexm
commented
Per exemple si no es pot fer find, este desplegable fallara: Per exemple si no es pot fer find, este desplegable fallara:
https://gitea.verdnatura.es/verdnatura/salix/src/commit/13a6f1f8c1e17b6bba6f5f8bed3172a229f01fda/modules/item/front/item-type/basic-data/index.html#L27
|
|
@ -24,8 +24,8 @@
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
label="Worker"
|
label="Worker"
|
||||||
ng-model="$ctrl.itemType.workerFk"
|
ng-model="$ctrl.itemType.workerFk"
|
||||||
url="Workers"
|
url="Workers/search"
|
||||||
show-field="firstName"
|
show-field="nickname"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
rule>
|
rule>
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
|
@ -25,8 +25,8 @@
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
label="Worker"
|
label="Worker"
|
||||||
ng-model="$ctrl.itemType.workerFk"
|
ng-model="$ctrl.itemType.workerFk"
|
||||||
url="Workers"
|
url="Workers/search"
|
||||||
show-field="firstName"
|
show-field="nickname"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
rule>
|
rule>
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
Loading…
Reference in New Issue
fins que llevem els * i pugam posar açò en un CHECK.
De moment així evitem que no vaja a mes.