-2

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

mechanical_meat
  • 163,903
  • 24
  • 228
  • 223

1 Answers1

0

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.