I want to make a script that allows certain user to modify or delete a certain item.
For example: Item 1 - can only be edited by user1; Item 2 - can only be edited by user2; All items - can be edited by admin
I want to make a script that allows certain user to modify or delete a certain item.
For example: Item 1 - can only be edited by user1; Item 2 - can only be edited by user2; All items - can be edited by admin
You need database were you store users and their permissions. Depending on logged in user you check permissions for him and allow or deny certain actions.