With the subject on mailing list "Permission service not on the same transaction" : http://markmail.org/message/34vxi4ntmbj7vzcr
I started the improvement but the java code need to be clean and refactoring.
I share my first draft patch, but need more works. I realize :
- unified call evalPermission
- move all related field for permission service on ModelService to ModelPermission
- Remove deprecated code
- start labelized error message
- add new attributes on permission model : required-new-transaction and return-error-on-failure