• Patrick Bajao's avatar
    Don't publish drafts if user can't create notes · e2c7c2df
    Patrick Bajao authored
    When request is made to publish drafts, we create `Note`s from
    the `DraftNote`s. So if user can't create notes, they shouldn't be
    able to publish draft notes as well.
    
    Check if user can `:create_note` when publishing and deny if not.
    e2c7c2df
drafts_controller_spec.rb 16.8 KB