Skip to content

Commit

Permalink
fix(Member Function): logic for setting query
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Feb 22, 2024
1 parent 2695f78 commit 93d6bd1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ frappe.ui.form.on("Member Function", {
const query_args = {
page_length: 50,
};

if (frappe.user.has_role("LANDA State Organization Employee")) {
frm.set_query("member_function_category", () => {
return query_args;
});
}

if (frappe.user.has_role("LANDA Regional Organization Management")) {
} else if (frappe.user.has_role("LANDA Regional Organization Management")) {
query_args.filters = {
access_level: [
"in",
Expand Down

0 comments on commit 93d6bd1

Please sign in to comment.