mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
vmodhash: Check mock modhash value for testing.
This commit is contained in:
@@ -723,7 +723,10 @@ class VModhash(Validator):
|
||||
self.fatal = fatal
|
||||
|
||||
def run(self, uh):
|
||||
pass
|
||||
if not c.user_is_loggedin or uh != c.user.name:
|
||||
if self.fatal:
|
||||
abort(403)
|
||||
self.set_error('INVALID_MODHASH')
|
||||
|
||||
def param_docs(self):
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user