Skip to content

Load scripts if a user is logged in and is allowed invite guests - #1402

Merged
leftybournes merged 3 commits into
mainfrom
leftybournes/fix/guest_dialog
Sep 4, 2025
Merged

Load scripts if a user is logged in and is allowed invite guests#1402
leftybournes merged 3 commits into
mainfrom
leftybournes/fix/guest_dialog

Conversation

@leftybournes

@leftybournes leftybournes commented Sep 4, 2025

Copy link
Copy Markdown
Member

Scripts are loaded on the login page, which is unnecessary. This fixes the issue by only loading the scripts to add guests if a user is logged in and has the ability to invite guests.

@leftybournes
leftybournes force-pushed the leftybournes/fix/guest_dialog branch 3 times, most recently from 1c030b0 to 482764a Compare September 4, 2025 05:44
Signed-off-by: Kent Delante <kent.delante@proton.me>
@leftybournes
leftybournes force-pushed the leftybournes/fix/guest_dialog branch from 482764a to d0ecda1 Compare September 4, 2025 05:50
Comment thread lib/Listener/BeforeTemplateRenderedListener.php Outdated
Scripts would load everywhere, including on the login screen when it
isn't necessary. Load the guest scripts if logged in and able to
invite guests.

Signed-off-by: Kent Delante <kent.delante@proton.me>
@leftybournes
leftybournes force-pushed the leftybournes/fix/guest_dialog branch from d0ecda1 to 9310d30 Compare September 4, 2025 08:01
Signed-off-by: Kent Delante <kent.delante@proton.me>
@leftybournes
leftybournes force-pushed the leftybournes/fix/guest_dialog branch from 9310d30 to 4191bac Compare September 4, 2025 08:06
@leftybournes
leftybournes merged commit c08315c into main Sep 4, 2025
48 checks passed
@leftybournes
leftybournes deleted the leftybournes/fix/guest_dialog branch September 4, 2025 08:11
@leftybournes leftybournes mentioned this pull request Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants