Skip to content

Commit 4b4ba7c

Browse files
authored
Merge pull request #741 from concord-consortium/178658151-allow-non-authors-to-update-pages
allow non-authors to update pages
2 parents 5fed101 + 76c3c95 commit 4b4ba7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/models/ability.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ def initialize(user)
4646
end
4747
# Everyone (author and regular user) can update activities they own.
4848
can :update, LightweightActivity, :user_id => user.id
49+
# Everyone (author and regular user) can update pages in the activities they own.
50+
can :update, InteractivePage, :lightweight_activity => { :user_id => user.id }
4951
# Everyone (author and regular user) can read public, hidden and archived sequences or activities.
5052
['public', 'hidden', 'archive'].each do |allowed_status|
5153
can :read, Sequence, :publication_status => allowed_status

0 commit comments

Comments
 (0)