Fix: permission check in invoice webservice
remove comment & indent code
Merge pull request #1224 from jfefe/fix_ws_invoice

Fix ws invoice