anhonigman1848/mhsbake — comment on commit b0c55d65797cc88b0ecbd4737b5c5801c173617f
File:  line 0
By sedan444:

IMPORTANT NOTES:

A few database modifications are needed for these changes to work smoothly.

1) in myphpadmin (or however else you make changes) open the users table.
2) click 'structure' and check 'roles', click 'change'.
3) change 'Type' to ENUM. change values to 'admin','staff','basic'
4) set default to 'as defined' and select 'basic' for the default value.
5) rename the columns 'name_last' and 'name_first' to 'last_name' and 'first_name'.

If you like, you can delete any or all users in the table, because for now we are allowing a not_logged_in user to add users by going to mhsbake/users/add. Later we will have to close this back door (maybe put a note at the end of project plan?).

These same changes will have to be made at the remote site when we upload later tonight.

General notes:

Login and Logout should work a little more smoothly. As of now there is no functional difference between a basic and staff user (we will build out this functionality incrementally). Only admins can edit or delete an account other than their own (those buttons wont show up unless you're an admin). I also cleaned up some experimental code that I had forgotten about. If you see anything weird it probably means I missed it so either fix it or let me know. :)