plugin permissions improvement