#4577 (StartNewSale quicklink is shown even when not permitted)
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Kurzbeschreibung
Kinder
Kommentare
- 4 Jahre, 3 Monate ago von Luc Saffre about #4577 (StartNewSale quicklink is shown even when not permitted) : Let's try to talk about this. Feels like an interesting entry point for me learn a bit about how Lino uses React.
- 4 Jahre, 3 Monate ago von Sharif Mehedi about #4577 (StartNewSale quicklink is shown even when not permitted) : There's something we can do to mitigate this problem. We can add to the response (to the request which loads the actor data) a value for the available list of actions.
- 4 Jahre, 3 Monate ago von Sharif Mehedi about #4577 (StartNewSale quicklink is shown even when not permitted) : There should be something in the layouts where we have access to ar.
- 4 Jahre, 3 Monate ago von Sharif Mehedi about #4577 (StartNewSale quicklink is shown even when not permitted) : At the moment, we don't have access to ar in QuickLinksList or in Site.get_quicklink_items. Which troubling for checking the action permission.
- 4 Jahre, 3 Monate ago von Sharif Mehedi about #4577 (StartNewSale quicklink is shown even when not permitted) : Does NOT looks for the permission when use_dashboard_layouts is True. I will try to fix it.
- 4 Jahre, 3 Monate ago von Luc Saffre about #4577 (StartNewSale quicklink is shown even when not permitted) : An easy change, but I took some time to figure it out: just another condition {% if ql.bound_action.get_bound_action_permission(ar) %} in the admin_main_base.html file where it renders the quicklinks. TODO for Sharif: what happens when system.use_dashboard_layouts is True?