Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Record level permissions

In a database I am designing I have implemented profile based object level security.

Each user can view, edit, insert, update database tables according to the profiles (roles) he is a member of.

Now there is a need to implement "External Users" who can view only the relevant records and edit some of them (but not the bulk of the database).

I am working on an "record ownership" model.

Are there any ideas on how to restrict the users belonging to an "External Users" profile to see and work with some records of each table, but not all.

like image 265
pkario Avatar asked Aug 16 '26 05:08

pkario


1 Answers

You should probably create a VIEW which limits the records and then apply the proper rights on the view.

like image 108
Jonas Lincoln Avatar answered Aug 18 '26 20:08

Jonas Lincoln



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!