DataTables howto restrict editing to specific users.

DataTables howto restrict editing to specific users.

verlagerverlager Posts: 18Questions: 3Answers: 0
edited December 2011 in DataTables 1.8
The DataTables editing example looks great. But I want only a few people to have table editing privileges, not all users.

I guess I could do something like:

1. password protect table master file. Add dataTables and jeditable plugins.
2. User edits master file on line. Maybe check for newer file when end user loads old non-editable file.
3. bash shell script sed removes all cell classes of "edit" and outputs to main public.file

This seems dicey and full of things that can, and probably will, go horribly wrong.
Please tell me that my three steps above are unnecessary. Thank you so much!

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Editing access has nothing to do with DataTables as such, it is down to your site/app's user authentication to either allow or disallow user editing. What it should also do is not offer editing controls to users who don't have access to editing - but since DataTables knows nothing about your user authentication system, it can't dynamically hook into it - you need to tell it what to do :-)

    Allan
This discussion has been closed.