ryansuitposungkono / openjs-grid

Automatically exported from code.google.com/p/openjs-grid
0 stars 0 forks source link

How do i put user's level check for editing or adding #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. just want to put level confirmation so not all the people can modify or add 
or delete something from database

What is the expected output? What do you see instead?
if for example the person have a level1 (this is an example) and this person 
need a level2 for edit something, a message should say that this person is not 
allow

What version of the product are you using? On what operating system?
the last one 1.8. I'm using Win7

Please provide any additional information below.
i'm having problem with some tables, that doesn't show the info

Original issue reported on code.google.com by brai...@gmail.com on 13 Oct 2011 at 3:39

GoogleCodeExporter commented 9 years ago
You can do 2 things.
You can intercept the javascript save, do a 2nd ajax call to check permissions 
and then prompt the user.
OR 2) on the PHP side of things, when you save, check your current users 
session against some permission function you have in your system and then just 
don't call $grid->save() if they don't check out ok.

Original comment by Seancla...@gmail.com on 17 Oct 2011 at 12:05

GoogleCodeExporter commented 9 years ago
Thanks, i'll try.
i have an other one! how can i do to put a select button and edit button and 
change the row to edit??

Original comment by brai...@gmail.com on 17 Oct 2011 at 12:10

GoogleCodeExporter commented 9 years ago
currently either the whole grid is editable, or its not. Not just one row. You 
can manually add loadComplete listening that will find the row you want and 
disable editing, but its not built in

Original comment by Seancla...@gmail.com on 16 Nov 2011 at 5:35