question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

column_editable_list do not obey can_edit settings

See original GitHub issue

When can_edit = False, columns in column_editable_list are still editable

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
djpnewtoncommented, Jul 13, 2022

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

1reaction
vvchcommented, Oct 18, 2021

For example when can_edit is a callback property which returns True or False depending on current user permissions. And column_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 when can_edit was true with column_editable_list, but then it was set temporarily false in runtime.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found