1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-12-18 00:19:25 +02:00

fixing backend tests

This commit is contained in:
Braun Patrik
2017-07-03 20:33:10 +02:00
parent d07fa645c4
commit a7d9bc81c5
2 changed files with 38 additions and 19 deletions

View File

@@ -8,6 +8,7 @@ import {Config} from "../../../common/config/private/Config";
export class AuthenticationMWs {
private static async getSharingUser(req: Request) {
console.log(req);
if (Config.Client.Sharing.enabled === true &&
Config.Client.Sharing.passwordProtected === false &&
(!!req.query.sk || !!req.params.sharingKey)) {