Panel-wide authorization skip?
My admin panel is used as a way to manage content served via API routes to a mobile app. I have two authentication models in use,
User which are all the app users and UserAdmin which are the users that have access to the filament app. I've already set this up to use class UserAdmin extends Authenticatable implements FilamentUser, and I have access to my filament panel with UserAdmins just fine.
I recently implemented a model policy for my Article model relating to the API:
I've had to include a before() method to ensure that UserAdmins aren't affected when accessing the filament panel. I could've also used protected static bool $shouldSkipAuthorization = true; within my ArticleResource, but I'd rather the auth is all in one place (the policy).
I'm wondering if there's a way to bypass auth checks for all members of a given group within the panel settings:
Is something like this possible?0 Replies