Fix inconsistency with owner permissions check
Merged #52 "Fix inconsistency with owner permissions check"