Skip to content

Commit 8676614

Browse files
committed
fixed exercise teacher rights
1 parent 81dac43 commit 8676614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/ability.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def initialize(user)
1212
can :export, Exercise
1313
can :add_to_cart, Exercise
1414
can :read, Exercise
15-
can :edit, Exercise do |exercise|
15+
can :manage, Exercise do |exercise|
1616
exercise.user == user
1717
end
1818

0 commit comments

Comments
 (0)