ENG-6854: Squash. Fix permission enum creation from aliases.