Utilities with permissions #5697
-
I just created new utility call notification Where to add this line of permission please ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Unlike nav items, utilities will handle permissions for you. |
Beta Was this translation helpful? Give feedback.
-
This looks like a bug, good find. Can you open an issue? The permission should apply to the page itself, too. (Assuming you are just using a view like the |
Beta Was this translation helpful? Give feedback.
This looks like a bug, good find. Can you open an issue? The permission should apply to the page itself, too. (Assuming you are just using a view like the
Utility::make('french-fries')->view('fries-utility')->register();
example in the docs) If you use your own controller you'd have to write the authorize line yourself.