Check permissions before adding a new record

Check permissions before adding a new record with record operation created, updated and deleted. Without this fix permissions aren't checked for tx status == "BEGUN" which is the norm.