Hi guys,
I encountered the following error but don't know how to resolve it:
Given:
- Got 2 User, User A and User B
- B is Leave Approver of A
Steps to repro:
- Log in as User A
- Add New Leave Application, Select B as Leave Approver
- The moment I change field
to_date or press
Save. Error occurs:
Not allowed to access User with Leave Approver = us...@gmail.comThe error seems to come from this line in leave_application.js:
return get_server_fields('get_total_leave_days', '', '', doc, dt, dn, 1);
Is there sth to do with User Permission ?
How do I check for this cos actually in local version, it works fine but not in production. So I suspect could be something to do with data as well.
Thanks!!!