Hi there guys,
I'm trying to alter my script to allow multiple admins, with different permissions to be appointed in the backend. For instance, one admin can do absolutely anything, another can only add and edit, and yet another can add or delete.
So we have:
add
edit
delete
super
I've altered the user's table in the database to hold values for this. Now what I would like to do is alter the portions of my script that will now need to check for the proper permissions.
My question is; what is the best way to go about this? Just make a call to the db on page generation and do an if/else statement to handle whether it gets presented or not?
I would appreciate any suggestions on the cleanest and most efficient way to take care of this.
thanks,
json