Break the actual permission verification into a separate function, for reuseability and clarity
Break the actual permission verification into a separate function, for reuseability and clarity

CTPUG/wafer,CTPUG/wafer,CTPUG/wafer,CTPUG/wafer