Fixed GetPermitAccess

Fixed GetPermitAccess