nova-issues icon indicating copy to clipboard operation
nova-issues copied to clipboard

Action Log Authorization

Open dgoldstein89 opened this issue 7 years ago • 10 comments

Nova version: 2.0.9

Is there a way to hide the action events log from some users? I can create an ActionEventPolicy, but then if viewAny() returns false the user is redirected to a 403 page.

dgoldstein89 avatar Sep 24 '19 20:09 dgoldstein89

Hey there! In order to keep this repository focused on bug reports, we auto-close feature requests and requests for help. Feel free to post your feature requests so others can discuss and add reactions. We'll keep an eye on them for later planning.

jbrooksuk avatar Sep 27 '19 13:09 jbrooksuk

+1. Yes, please, this would be very useful!

kidereo avatar Oct 06 '19 08:10 kidereo

I guess I didn't look hard enough before creating the issue. See #1413

dgoldstein89 avatar Oct 07 '19 13:10 dgoldstein89

Adding another Policy and registering it in AuthServiceProvider for ActionEvent::class works for me.

oheck avatar Jan 05 '20 06:01 oheck

Hi @oheck can you please provide an example many thx !!!

issour avatar Apr 13 '20 15:04 issour

@issour https://github.com/oheck/example-action-log-authorization

  • admin can view ActionEvents
  • user cannot view ActionEvents

oheck avatar Apr 13 '20 22:04 oheck

@oheck fabulous ! Big big thank you !!! 💯

issour avatar Apr 13 '20 22:04 issour

@issour https://github.com/oheck/example-action-log-authorization

  • admin can view ActionEvents
  • user cannot view ActionEvents

Huge thank you for this. You saved me hours of googling. I used it to set up a preference based on each user if they want to see the action log as it was confusing some users.

dblumenau avatar Jul 11 '20 00:07 dblumenau

@issour https://github.com/oheck/example-action-log-authorization

  • admin can view ActionEvents
  • user cannot view ActionEvents

Saved my life

mateusgalasso avatar Aug 24 '20 10:08 mateusgalasso

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Oct 09 '21 00:10 github-actions[bot]