Refactored the printing of permissions