Set Permission or Conditions To Script Report Filter

"fieldname":"company",
"label": __("Company"),
"fieldtype": "Link",
"options": "Company",
"default": frappe.defaults.get_user_default("Company"),
"permlevel": 3

Above "permlevel": 3 or "hidden": frappe.user.has_role("Accounts Manager") not working!

How to achieve this?

I don’t think perm levels get applied on report filters.

"hidden": frappe.user.has_role("Accounts Manager") not working!

how to hide filter based on certain conditions?

hey , could you help if you solved this.