Securing PR51 for a Process Level

Sort:
You are not authorized to post a reply.
Author
Messages
GregSl
Veteran Member
Posts: 38
Veteran Member

    I have to restrict access to a group of users to PR51 by their Process Level. I wrote a rule using PAYMSTR table since I cannot do any thing on the onine object PR51 as the form.Process Level is not available.

    The rule is, if the table.Process_level =='HR' and userid !=table.employee, No Access

    The file rule is not affective.

    Can anyone who had a similar situation, please share how the rules were applied  or suggestions?

    Greatly appreciate your kind assistance.

     

     

     

     

    Frank Z
    Advanced Member
    Posts: 32
    Advanced Member
      Here is the statement from my PR51.1 token. We use PL for our field stations that only have one city to worry about, so we only have to write one rule that pulls from the RM info for all of the locations. This one is from a finance role that looks at very specific departments.

      if(getDBField('EMPLOYEE','DEPARTMENT',form.PYM_COMPANY)=='30620'||getDBField('EMPLOYEE','DEPARTMENT',form.PYM_COMPANY)=='32062'||getDBField('EMPLOYEE','DEPARTMENT',form.PYM_COMPANY)=='31620'||getDBField('EMPLOYEE','DEPARTMENT',form.PYM_COMPANY)=='32620'||getDBField('EMPLOYEE','DEPARTMENT',form.PYM_COMPANY)=='36639'||getDBField('EMPLOYEE','DEPARTMENT',form.PYM_COMPANY)=='30450'||getDBField('EMPLOYEE','DEPARTMENT',form.PYM_COMPANY)=='36599') { 'ALL_ACCESS,' } else { 'NO_ACCESS,' }
      You are not authorized to post a reply.