save progress

This commit is contained in:
Thomas Hille
2017-04-11 16:29:29 +02:00
parent 73c3b902a3
commit e4d28452bf
6 changed files with 69 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
class TagPolicy < AdminOrAuthorPolicy
class UserExerciseFeedbackPolicy < AdminOrAuthorPolicy
def author?
@user == @record.author
end
@@ -8,6 +8,10 @@ class TagPolicy < AdminOrAuthorPolicy
admin?
end
def create?
everyone
end
def show?
@user.internal_user?
end