mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:34:31 +08:00
FIX: Return 410 Gone for deleted topics you could otherwise see
This commit is contained in:
@ -43,7 +43,13 @@ module Discourse
|
||||
class InvalidParameters < StandardError; end
|
||||
|
||||
# When they don't have permission to do something
|
||||
class InvalidAccess < StandardError; end
|
||||
class InvalidAccess < StandardError
|
||||
attr_reader :obj
|
||||
def initialize(msg=nil, obj=nil)
|
||||
super(msg)
|
||||
@obj = obj
|
||||
end
|
||||
end
|
||||
|
||||
# When something they want is not found
|
||||
class NotFound < StandardError; end
|
||||
|
Reference in New Issue
Block a user