docbrown/app/policies/video_policy.rb
Ben Halpern bce0b4fff6
Remove harsh video restriction and add video duration (#1811)
* Remove harsh video restriction and add video duration

* Fix video meta data and tests

* Modify video tests

* Rescue video duration fetch error

* Change log to puts in test
2019-02-16 17:42:44 -04:00

9 lines
186 B
Ruby

class VideoPolicy < ApplicationPolicy
def new?
user.created_at < 2.weeks.ago if user.created_at
end
def create?
user.created_at < 2.weeks.ago if user.created_at
end
end