FIX: Return 410 Gone for deleted topics you could otherwise see

This commit is contained in:
Kane York
2015-09-18 00:14:43 -07:00
parent 6c6d3a2159
commit c9e4745fe8
5 changed files with 46 additions and 5 deletions
+7 -1
View File
@@ -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