before_filter and parameters

Nick Brutyn wrote:

in my controller i have this

before_filter :module_backend_required('users','update'), :only => [ :edit, :update ]
=>> syntax error on 'users','update'

...

How can i get the 2 parameters? so i dont need to make a lot functions for each module/action.

before_filter(:only => [:edit,:update]) do
   module_backend_required('users','update')
end