Skip to content

Conversation

bvisible
Copy link
Contributor

This PR fixes an issue where the Builder edit icon was visible to users who don't have sufficient permissions to edit pages, such as Website Users.

Changes

  • Added an additional check in the editor icon condition to hide it for Website Users
  • The icon will now only be displayed for System Users who have the necessary privileges

Why

Previously, the edit icon was being displayed for all logged-in users, including Website Users who don't have permission to use Builder. This was confusing as clicking the icon would lead them to an access denied page.

Testing

  • Login as a Website User and verify that the edit icon doesn't appear
  • Login as a System User and verify that the edit icon still appears properly

@surajshetty3416 surajshetty3416 merged commit 577f84a into frappe:develop Mar 18, 2025
3 checks passed
Copy link

codecov bot commented Mar 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 41.68%. Comparing base (98bd696) to head (3be3a37).
Report is 33 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #325   +/-   ##
========================================
  Coverage    41.68%   41.68%           
========================================
  Files           16       16           
  Lines         1137     1137           
========================================
  Hits           474      474           
  Misses         663      663           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@surajshetty3416
Copy link
Member

@Mergifyio backport master

Copy link

mergify bot commented Mar 28, 2025

backport master

✅ Backports have been created

surajshetty3416 added a commit that referenced this pull request Mar 28, 2025
fix: Hide edit icon for Website Users (backport #325)
@surajshetty3416
Copy link
Member

🎉 This PR is included in version 1.16.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

surajshetty3416 added a commit that referenced this pull request Jul 1, 2025
fix: Hide edit icon for Website Users
surajshetty3416 added a commit to surajshetty3416/builder that referenced this pull request Jul 30, 2025
fix: Hide edit icon for Website Users (backport frappe#325)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants