Below I am will go into detail about Version 2 and what is it and how I made it different than Version One.
Version 2 is when I build a working database with user roles. These user roles will be Staff or Admin, Labor Student, and Student. Now, that Staff will have full access whereas the Labor Student will have to limit access such as they can edit and upload but they can’t delete. Whereas the Student has the lowerest access his or she can only download and only see the index page. This is done by using Flask-Security extension named Flask-Login. Flask-Login is easy to use session management which interacted Flask-Security to Authentic using PeeWee a database interaction tool API to access known user data. This results in a system that is simple and effective use python.
Version 1 didn’t check for the user. It proved an application that useable and able to meet the needs of a database. I was able to upload file, download file, edit file information, delete a file from the database, able to search a file based on title size, edition, and author and was able to do the easy and is an accessible way.
Version 2 had expanded now, there is a login page and log out feature. Plus, now the only student can see the index page and nothing else. Whereas in Version One anyone could access anyone as part of the application.
In conclusion, I have set up the user role and the security but the only issue at the moment is the database is not connected to the banner and can’t pull username and you can’t add or remove user through the application. This problem will be resolved in the future version. Mostly Version 3 and Version 4. Thank you for reading.