Restrict visibility of custom action (function) in reports

Restrict visibility of custom action (function) in reports

I have created some functions and integrated them into reports as custom actions. Is it possible to restrict which users can access this custom actions? Currently they are viewable to all.