PLD: refactor fetching permission info