PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 11/14/2017 6:19 AM by  JimY
Debug Conditional Rule Access v9 / v10
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages
edison
developer
Private
Basic Member
(45 points)
Basic Member
Posts:19


Send Message:

--
11/13/2017 1:54 PM

    Hello,

    We upgraded LSF from v9 to v10. We're having an issue where users can edit their own records. We don't want users to edit their own record, it is working on v9 but not in v10.

     

    I've narrowed it down to the Security Class - Conditional Rule Access.

    this line:

    if((user.getCompany()==lztrim(form.COMPANY))&&(user.getEmployeeId()!=lztrim(form.EMPLOYEE)))
       'ALL_ACCESS,'
    else
       'NO_ACCESS,'

     

    The above rule always default to false. I've tried different rule combinations and it has led me to believe that either user.getEmployeeId() or form.EMPLOYEE is returning 0 (or something else)

     

    I want to know the value of user.getEmployeeId(). 

    How do you usually debug this? is there a way to print to the log or a popup to the user?

     

     

     

    JimY
    Private
    Private
    Veteran Member
    (1089 points)
    Veteran Member
    Posts:389


    Send Message:

    --
    11/14/2017 6:19 AM
    Here is what we have for HR11


    if(user.getCompany()==form.EMP_COMPANY&&user.getEmployeeId()==form.EMP_EMPLOYEE&&form.EMP_AUTO_DEPOSIT)
    'C,I,'
    else
    'NO_ACCESS,'
    You are not authorized to post a reply.