| Index
» Projekty
» phpMyEdit
» Fórum
» user login |
 |
manamalkav
Založený: 11.11.2003
Príspevky: 8
Bydlisko: Florida, USA
Zaslal: 2003-11-18 15:46
Návrat hore
Odpovedať s citátom
|
Further to the above reply....
You can employ the TIB, TUB, TDB (Trigger insert before, trigger update before and Trigger delete before) to verify the user identity and his permissions prior to the operation.
Within the trigger,
1. Get the the session user name (assuming you are using sessions to store user info),
2. Do an SQL select on the table to get the authorized user for THAT RECORD (you need to associate each record with its creator as described in the previous reply).
3. If the 2 do NOT match, return false to cancel the operation.
4. If on the other hand, they do match, it is an authorized operation, (go ahead with the validation)and return true.
Thanks.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|