Bläddra i källkod

fix: Show quick list only if user has access (#18102) (#18108)

(cherry picked from commit 14a84793a8)

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
version-14
mergify[bot] 2 år sedan
committed by GitHub
förälder
incheckning
30a613a790
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: 4AEE18F83AFDEB23
1 ändrade filer med 5 tillägg och 4 borttagningar
  1. +5
    -4
      frappe/desk/desktop.py

+ 5
- 4
frappe/desk/desktop.py Visa fil

@@ -291,12 +291,13 @@ class Workspace:
quick_lists = self.doc.quick_lists

for item in quick_lists:
new_item = item.as_dict().copy()
if self.is_item_allowed(item.document_type, "doctype"):
new_item = item.as_dict().copy()

# Translate label
new_item["label"] = _(item.label) if item.label else _(item.document_type)
# Translate label
new_item["label"] = _(item.label) if item.label else _(item.document_type)

items.append(new_item)
items.append(new_item)

return items



Laddar…
Avbryt
Spara