lapis icon indicating copy to clipboard operation
lapis copied to clipboard

Except One Action from a Before Filter?

Open cycomachead opened this issue 2 years ago • 2 comments

Is there a standard way to have a filter which runs on all actions except one or two? For example, I might want to have one route which skips some permissions checks, but virtually all others should have them.

cycomachead avatar Nov 11 '21 10:11 cycomachead

u can do it with path or params in the filter

yuanguangjian avatar Jan 19 '22 01:01 yuanguangjian

You would have to provide this functionality yourself. A potential solution would be to use self.route_name to return early in your before filter

leafo avatar Jan 19 '22 21:01 leafo