method linkVisible /+ Returns Boolean +/ /+ Extends/implements PT_RCF:ServiceFilter.linkVisible +/ Local string &emplid; try &emplid = HR_OC_NODE_WRK.EMPLID; catch Exception &trash &emplid = DERIVED_HRCD_MN.EMPLID; end-try; If &emplid = %EmployeeId Then Return True; Else Return False; End-If; end-method;
I created another one for MSS checks to see if the current user is a manager for the target emplid.
Then I used SQL to update the backend table and moved it to QA:
UPDATE PSPTCSSRVCONF A SET PACKAGEROOT = 'ZZ_RLC_SERVICEFILTERS', QUALIFYPATH = ':', APPCLASSID = 'isMeMss' where portal_objname = 'HC_HRCD_CO_DIRECTORY_GBL' AND PNLNAME = 'HRCD_MAIN' AND exists ( select 'x' from PSPTCSSRVDEFN x where x.PTCS_SERVICEID = a.PTCS_SERVICEID AND X.PORTAL_MENUNAME IN ( 'ROLE_MANAGER' ));
UPDATE PSPTCSSRVCONF A SET PACKAGEROOT = 'ZZ_RLC_SERVICEFILTERS', QUALIFYPATH = ':', APPCLASSID = 'isMeEss' where portal_objname = 'HC_HRCD_CO_DIRECTORY_GBL' AND PNLNAME = 'HRCD_MAIN'AND exists ( select 'x' from PSPTCSSRVDEFN x where x.PTCS_SERVICEID = a.PTCS_SERVICEID AND X.PORTAL_MENUNAME IN ( 'ROLE_EMPLOYEE' ));
Now that looks correct.
No comments:
Post a Comment