mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Search: Ignore public album filter if "Private" feat is disabled #2570
This needs to be very well tested and discussed, as these changes can lead to private photos being accidentally published. Thank you! Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -85,6 +85,10 @@ func AbortEntityNotFound(c *gin.Context) {
|
||||
Abort(c, http.StatusNotFound, i18n.ErrEntityNotFound)
|
||||
}
|
||||
|
||||
func AbortAlbumNotFound(c *gin.Context) {
|
||||
Abort(c, http.StatusNotFound, i18n.ErrAlbumNotFound)
|
||||
}
|
||||
|
||||
func AbortSaveFailed(c *gin.Context) {
|
||||
Abort(c, http.StatusInternalServerError, i18n.ErrSaveFailed)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user