forked from owncloud/music
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On NC, don't load the embedded player on auth page nor on shared file
The typed dispatcher event BeforeTemplateRenderEvent on Nextcloud from the Files_Sharing app tells us if the loaded view is the authentication page of a password-protected share and if the shared node type is file or folder. On NC, we anyway are using the embedded player only on folder shares and now we can avoid the unnecessary loading of our module on the authentication page or on the share page of an individual file.
- Loading branch information
Showing
2 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters