GibbonEdu / core

Gibbon is a flexible, open source school management platform designed to make life better for teachers, students, parents and leaders.
https://gibbonedu.org
GNU General Public License v3.0
462 stars 301 forks source link

System: update access denied message for non-logged in users #1641

Closed SKuipers closed 1 year ago

SKuipers commented 2 years ago

This PR replaces the standard "you do not have access" message when users are not logged in. I tried a few approaches and decided to handle it as a string replacement because there are over 1300 instances of the string in the core and additional modules. This approach introduces the least code changes and enables fine-tuning the wording of this message in the future.

From:

Screen Shot 2022-09-19 at 11 29 09 AM

To:

Screen Shot 2022-09-19 at 11 34 34 AM

Motivation and Context This helps improve the user experience when someone clicks a link externally, especially from emails, but needs to login first to access the page. Rather than telling them access is denied, it prompts them to login.

How Has This Been Tested? Locally.