ticket:00 Refactored permission creation