Skip to content

Commit

Permalink
Allow editors to delete files, bump version to 0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Kitchin committed May 9, 2016
1 parent 1b7653f commit f9f6bfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/trough/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/trough/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Trough
VERSION = "0.0.10"
VERSION = "0.0.11"
end

0 comments on commit f9f6bfd

Please sign in to comment.