aboutsummaryrefslogtreecommitdiff
path: root/pkgs/webapps/etherpad-lite/modules/ep_ldapauth/node-packages.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/webapps/etherpad-lite/modules/ep_ldapauth/node-packages.nix')
-rw-r--r--pkgs/webapps/etherpad-lite/modules/ep_ldapauth/node-packages.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/webapps/etherpad-lite/modules/ep_ldapauth/node-packages.nix b/pkgs/webapps/etherpad-lite/modules/ep_ldapauth/node-packages.nix
index 9e6fdbe..8140187 100644
--- a/pkgs/webapps/etherpad-lite/modules/ep_ldapauth/node-packages.nix
+++ b/pkgs/webapps/etherpad-lite/modules/ep_ldapauth/node-packages.nix
@@ -330,6 +330,9 @@ in
330 url = "https://registry.npmjs.org/ep_ldapauth/-/ep_ldapauth-0.3.0.tgz"; 330 url = "https://registry.npmjs.org/ep_ldapauth/-/ep_ldapauth-0.3.0.tgz";
331 sha1 = "8b34ea34b20ae97d53d753cc7d1f6f191800e3b0"; 331 sha1 = "8b34ea34b20ae97d53d753cc7d1f6f191800e3b0";
332 }; 332 };
333 preRebuild = ''
334 sed -i -e 's/context.message.data.type == "USERINFO_UPDATE"/context.message.data.type == "USERINFO_UPDATE" \&\& context.req \&\& context.req.session \&\& typeof(context.req.session.user) !== "undefined"/g' ep_ldapauth.js
335 '';
333 dependencies = [ 336 dependencies = [
334 sources."asn1-0.2.3" 337 sources."asn1-0.2.3"
335 sources."assert-plus-1.0.0" 338 sources."assert-plus-1.0.0"
@@ -386,4 +389,4 @@ in
386 bypassCache = true; 389 bypassCache = true;
387 reconstructLock = true; 390 reconstructLock = true;
388 }; 391 };
389} \ No newline at end of file 392}