column_editable_list do not obey can_edit settings
See original GitHub issueWhen can_edit = False
, columns in column_editable_list are still editable
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
so what do you do when you want to be able to edit a couple of fields via
column_editable_list
but dont want the entire record to be able to be updated?For example I only want the admin to be able to edit a users roles but I dont want them to have access to the entire record editing form
For example when
can_edit
is a callback property which returnsTrue
orFalse
depending on current user permissions. Andcolumn_editable_list
is a constant list. In this case (which seems to be very common) ability to edit fields for those users for whom editing was explicitly prohibited could become a big surprise and a security hole. Or any other case whencan_edit
was true withcolumn_editable_list
, but then it was set temporarily false in runtime.