Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 24. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  user login

phpMyEdit Configuration     user login
Odoslať novú tému   Odpovedať na tému    
 
manamalkav     Založený: 11.11.2003   Príspevky: 8   Bydlisko: Florida, USA
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov