Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions banking/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,18 @@
app_description = "Banking Integration by ALYF GmbH"
app_email = "hallo@alyf.de"
app_license = "GPLv3"
app_home = "/desk/alyf-banking"
notification_email_logo = "/assets/banking/images/alyf-logo.png"

add_to_apps_screen = [
{
"name": app_name,
"logo": "/assets/banking/images/logo.png",
"title": app_title,
"route": app_home,
}
]
Comment on lines +10 to +17
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Missing has_permission guard on apps-screen entry

Without a has_permission callable, the Banking app card is shown to every authenticated user on the apps screen — including users who have no banking-related roles or permissions. Frappe's add_to_apps_screen hook supports an optional has_permission dotted-path string (e.g. "banking.hooks.has_banking_permission") that lets you hide the tile for users who shouldn't see it.

Fix in Cursor


# Includes in <head>
# ------------------

Expand Down
Loading