CodeIgniter Forums
How to make approval system according to role hierarchy - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12)
+--- Thread: How to make approval system according to role hierarchy (/showthread.php?tid=69598)



How to make approval system according to role hierarchy - rrajesh011 - 12-20-2017

I want to build an approval system like this

Example:- I have roles like Sr. Manager, Manager, Team Leader, Employees.

If employee raised a query, then this query will go to his team leader, he can approval/reject this query, if accept then this query will go to manager and Sr. Manager.

How to make a flow system like this.

Notification will also be sent.

I don't know how to setup make database table for this case.

Any help will be appreciated.

Thanks in advance.


RE: How to make approval system according to role hierarchy - InsiteFX - 12-20-2017

All you need is an approved field in your table, set it to 0 = not approved or 1 = approved.