diff --git a/lodgeit/controllers/pastes.py b/lodgeit/controllers/pastes.py index 78c6085..dd47b21 100644 --- a/lodgeit/controllers/pastes.py +++ b/lodgeit/controllers/pastes.py @@ -87,7 +87,8 @@ class PasteController(object): """Show an existing paste.""" linenos = local.request.args.get('linenos') != 'no' paste = Paste.get(identifier) - if paste is None: + + if (paste is None) or (paste.private and identifier.isdigit()): raise NotFound() if raw: return Response(paste.code, mimetype='text/plain; charset=utf-8')