mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Return 410 Gone for deleted topics you could otherwise see
This commit is contained in:
+7
-1
@@ -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