We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5fed101 + 76c3c95 commit 4b4ba7cCopy full SHA for 4b4ba7c
app/models/ability.rb
@@ -46,6 +46,8 @@ def initialize(user)
46
end
47
# Everyone (author and regular user) can update activities they own.
48
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 }
51
# Everyone (author and regular user) can read public, hidden and archived sequences or activities.
52
['public', 'hidden', 'archive'].each do |allowed_status|
53
can :read, Sequence, :publication_status => allowed_status
0 commit comments