general bugfixing after switch, new permission model for entries and invoices