# Change topic timestamp results in 403 (Forbidden)

**URL:** <https://meta.discourse.org/t/change-topic-timestamp-results-in-403-forbidden/52312>\
**Category:** Development\
**Created:** [November 1, 2016, 5:00pm UTC](https://meta.discourse.org/t/change-topic-timestamp-results-in-403-forbidden/52312 "2016-11-01T17:00:17Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)\
**Post date:** [November 4, 2016, 12:39am UTC](https://meta.discourse.org/t/change-topic-timestamp-results-in-403-forbidden/52312/6 "2016-11-04T00:39:24Z")

</div>

I’m monkey patching the Guardian class in Babble [here](https://github.com/gdpelican/babble/blob/beta/plugin.rb#L511):

```plaintext
class ::Guardian
  module CanSeeTopic
    def can_see_topic?(topic)
      super || some_other_condition
    end
  end
  prepend CanSeeTopic
end

```

[Module#prepend](http://dev.af83.com/2012/10/19/ruby-2-0-module-prepend.html) is a little opaque, but in short it allows you to invoke the ‘original’ function of the class with `super`. Then you can add additional checks to the function to suit your needs.

If you don’t care about what the original functionality is, you can also simply wipe the original implementation like so:

```plaintext
class ::Guardian
  def can_see_topic?(topic)
    false # no topics for anyone! 😈 
  end
end

```

Note that this is a little bit riskier because the original implementation may change without you knowing it.

---

_[View the full topic](https://meta.discourse.org/t/change-topic-timestamp-results-in-403-forbidden/52312)._
