den1n / nova-queues

Queues resource for Laravel Nova.
MIT License
12 stars 8 forks source link

Adds a new config option to overwrite the need for an user permission to create jobs #10

Closed kaiserkiwi closed 1 year ago

kaiserkiwi commented 1 year ago

Sorry for the amount of PRs. I just like the package and notice little things that could be a optimized from my perspective. If it's too much just let me know and I create a personalized fork for myself.

Anyways enough of the disclaimer. What is this PR about? I use my Nova installation completely alone and will never add people to it that aren't allowed to do the exact same things than me. So I don't like the need to create an extra permission to create jobs just for the retry action.

For this reason I added another option to the config to overwrite/bypass the need of the permission. Per default it's false because I think you should know when to retry an job and for most people it's probably reasonable to have a permission for this task in their project.

I additionally enabled that the option is directly in the option menu on the index table row.