OZP-682 Implemented authorization logic