Steps to reproduce
- 
Define a rule in Geoserver-ACL:
cql_filter_write: tipo = 5
 
 
- 
Insert a feature in Geoserver, using WFS, with tipo = 4 .
- Result: Rejected (expected).
 
 
- 
Insert a feature with tipo = 5.
 
- 
Update this feature, changing tipo from 5 to 4.
- Result: Accepted (unexpected).
 
 
Actual behavior
The rule only validates the original value of the feature during an update, not the new value.
Expected behavior
Both the original and updated values should be validated against cql_filter_write, otherwise restricted values can be inserted indirectly (insert + update).