From: Michael Tremer Date: Fri, 23 Feb 2024 19:25:25 +0000 (+0000) Subject: nopaste: Fix passing the correct account X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a0904b5d1c2448360eb44b7d093f3f084ff1749;p=ipfire.org.git nopaste: Fix passing the correct account Signed-off-by: Michael Tremer --- diff --git a/src/web/nopaste.py b/src/web/nopaste.py index ad013670..90dc5a2a 100644 --- a/src/web/nopaste.py +++ b/src/web/nopaste.py @@ -55,7 +55,7 @@ class CreateHandler(base.AnalyticsMixin, base.BaseHandler): def put(self): with self.db.transaction(): paste = self.backend.nopaste.create( - self.request.body, account=account, address=self.get_remote_ip()) + self.request.body, account=self.current_user, address=self.get_remote_ip()) # Send a message to the client self.write("https://%s/view/%s\n" % (self.request.host, paste.uuid))