-
Hi, I was thinking about how to show/hide blocks by user. Looking at code, looks like I should rewrite FilamentFabricatorManager::getPageBlocks() and introduce a new method on Blocks something like function hide():bool or show:bool to implement in every Block. Have you ever tried something like this? |
Beta Was this translation helpful? Give feedback.
Answered by
Z3d0X
Oct 11, 2023
Replies: 1 comment 1 reply
-
Have you tried using |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
emiliosh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you tried using
->hidden(fn ()=> auth()->user()->can('foo'))
on the block (PageBlock getBlockSchema)