Is there any way to check if the user connected to MySQL has update access to a specific table field?
Posted: Tue 24 Apr 2007 10:30
Hi,
I have some users that don't want them to be able to update specific fields in a table. I have given MySQL restrictions on certain table fields for these users, so that my application raises an exception whenever a user tries to change these protected fields.
Is there however, any way that MyDAC will check for update access on these fields and react accordingly, not letting the user change the field - before sending the update query to the database?
Or, can I check programmatically for the access restrictions for the current user and be able to mark the field readonly at runtime so that the user is not able to change the - for example - checkbox?
Thanx in advance,
Kostas
I have some users that don't want them to be able to update specific fields in a table. I have given MySQL restrictions on certain table fields for these users, so that my application raises an exception whenever a user tries to change these protected fields.
Is there however, any way that MyDAC will check for update access on these fields and react accordingly, not letting the user change the field - before sending the update query to the database?
Or, can I check programmatically for the access restrictions for the current user and be able to mark the field readonly at runtime so that the user is not able to change the - for example - checkbox?
Thanx in advance,
Kostas