From f9f6bfd201f21818d9cd7b111386046cb1deb40d Mon Sep 17 00:00:00 2001 From: Tom Kitchin Date: Mon, 9 May 2016 16:16:44 +0100 Subject: [PATCH] Allow editors to delete files, bump version to 0.11 --- app/models/trough/ability.rb | 2 +- lib/trough/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/trough/ability.rb b/app/models/trough/ability.rb index 0446844..3693d45 100644 --- a/app/models/trough/ability.rb +++ b/app/models/trough/ability.rb @@ -12,7 +12,7 @@ def initialize(user) can :manage, Trough::DocumentUsage end - if user.role.in?(%w( editor author )) + if user.role.in?(%w( author )) cannot :destroy, Trough::Document end end diff --git a/lib/trough/version.rb b/lib/trough/version.rb index 910219f..c564837 100644 --- a/lib/trough/version.rb +++ b/lib/trough/version.rb @@ -1,3 +1,3 @@ module Trough - VERSION = "0.0.10" + VERSION = "0.0.11" end