ringlesoft / laravel-process-approval

Laravel Process Approval is a Laravel package that makes it easy to add approvals to your Laravel application. It allows you to define approval workflows for any model, and it provides a simple and easy-to-use API/UI for managing approvals.
http://ringlesoft.com/packages/laravel-process-approval
MIT License
211 stars 22 forks source link

Permissions option over Role? #21

Closed tonypartridge closed 6 months ago

tonypartridge commented 7 months ago

I see here you have the role_id which works well. But also you have a permissions column, is there any reason why the permissions column which is a json store. Is there functionality to use permissions over roles? We use teams you see, and using roles means we need a global role. Opposed to just using existing roles, so a permission would be better. i.e. for us to check this user has permission to approval the model for X permission.

@ringunger ?

ringunger commented 6 months ago

Hello @tonypartridge I'm working on this feature and will be available in the coming versions. The column is there but not usable yet.

tonypartridge commented 6 months ago

Hello @tonypartridge I'm working on this feature and will be available in the coming versions. The column is there but not usable yet.

Great to hear, let me know if you need help. I have helped Eightynite on his package into filament for you package see: https://filamentphp.com/plugins/eightynine-approvals

I was also wondering about extending your package, to allow skipping to steps based on models fillable values.

i.e. is step = 2, model type value changes to 3 go to step 1 and so on.

ehtashamGH commented 5 months ago

@ringunger @tonypartridge Guys how to achieve this using this package:

Can we revert the flow back to the initiate step for any changes and then back to the approver who asked for changes?