How do I give role based access control to the users for a hospital management system using enum in python?
I am new to python programming and I need to write a python code for giving access controls to the users based on their roles like doctors, nurses, staffs, managers, etc. using enum implementation. I need this for a hospital management system. I have created an app called core and written the following codes:
How do I give role based access control to the users for a hospital management system using enum in python?
I am new to python programming and I need to write a python code for giving access controls to the users based on their roles like doctors, nurses, staffs, managers, etc. using enum implementation. I need this for a hospital management system. I have created an app called core and written the following codes: