module SubmissionPolicy def submit? record if owns? end def submissions? return false if user.nil? record if user_can_curate? end end