Role permission priorities?

If a user has two different roles defined for a doctype, how is the role set to work first?
For example, “Leave Application” has two roles, “Employee” and “Leave Approver”.
Which role would be the dominant when a user who has the “Submit” right derived from the “Leave Approver” role while the same user has no “Submit” right derived from “Employee” role. In my case, “Employee” role works as a priority. What is the way to solve this situation?

1 Like

What version you are using?
If you are on v10, then only leave approve can change status as Open/ Approved/ Rejected and Submit the leave application

you can also add workflow into leave application.