board logo
WUICTeam
  • WUICTeam
  • 100% (Exalted)
  • Newbie Topic Starter
22 days ago
Question
On a table where each user only sees their own records (row restriction by user, company or role), can a non-administrator user with delete permission remove records that are not shown to them in the list?

Answer
In versions before 1.7.30, yes, under specific conditions: a delete request that did not identify the record by its primary key could bypass the row-visibility check and also affect records of other users that the list does not show. Administrators were not involved, and the standard user interface always sends the key, but a crafted request could trigger it.

From 1.7.30 on:
  • on tables with row restrictions, an update or delete must identify the record by its full primary key, with the column name as defined in the metadata;
  • a request without the key is rejected with the same "record not accessible" error returned for records outside the user's visibility;
  • tables without row restrictions and administrator users behave as before.


We recommend updating to 1.7.30. If you call the CRUD API from your own code, make sure every update and delete carries the primary key of the record.