my java application to manage players, coaches, teams and matches.
only one administrator is allowed to add, change of delete players, teams ..
and only users with high permission are allowed to add matches or delete them from the database.
i was thinking about this solution:
add a new table to my DB: tblusers
user_id, user, password, privilege level
Expand|Select|Wrap|Line Numbers
- if (user.getPrivilegeLevel == x){
- // delete, insert, ..
- }
thx & kr
e