SELECT D.OPRID , A.PTAI_LIST_ID , E.LANGUAGE_CD , E.PTAI_LABEL FROM PS_PTAI_LIST A , PSPRDMDEFN B , PSOPRDEFN D , PS_PTAI_LIST_LNG E WHERE A.PTAI_LIST_ID = E.PTAI_LIST_ID AND B.PORTAL_NAME = A.PORTAL_NAME AND A.PTAI_ACTIVE_FLG = 'Y' AND B.PORTAL_TYPE NOT IN ('WORKSPACE', 'WORKSPACE_TMPL') AND (EXISTS ( SELECT 'X' FROM PS_PTAI_LIST_PRIV F WHERE F.PTAI_LIST_ID = A.PTAI_LIST_ID AND EXISTS ( SELECT 'X' FROM PSROLEUSER X WHERE X.ROLEUSER = D.OPRID AND ((F.PTAI_MBR_TYPE = 'USER' AND F.PTAI_MBR_NAME = X.ROLEUSER) OR (F.PTAI_MBR_TYPE = 'ROLE' AND F.PTAI_MBR_NAME = X.ROLENAME)))))
|