Is there anyway to do user access control with columns in one table?

QuestionsIs there anyway to do user access control with columns in one table?
solo asked 4 years ago

Is there anyway to do user access control with columns in one table?

For example, I have a table which have a column named customer type, I want that one user can read and/or edit the columns with type one, the other user can read and/or edit type two.

Thanks a lot.

2 Answers
solo answered 4 years ago

And more is there anyway to made some fields read-only?

Thanks

Abu answered 4 years ago

This is no direct api. However you can put JS based checked based on SESSION_ID or php variable in JS code.
https://www.gridphp.com/demo/demos/editing/column-access.phps

For server side checks, you need on_insert, on_update, on_delete callback functions to limit it based on session data.

Yes, readonly is supported. Refer docs

Your Answer

7 + 3 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?