Allow specific row editing

QuestionsAllow specific row editing
Nicolás asked 2 years ago

Hi, I have several comercial people accessing the same grid, so they can see all existing clients at once. I want each of them to be able to edit only their clients (other comercial people clients blocked for edition). It is possible to allow edition only on specific rows?

Thank you!!

1 Answers
Abu Ghufran Staff answered 2 years ago

Hi,

I think practical way to solve this situation is to use WHERE clause in your select query that will limit to show clients based on logged in USER_ID. e.g.

$g->select_command = “SELECT * FROM clients WHERE owner_id = “.$_SESSION[“logged_in_user_id”];

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

16 + 0 =

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?