Commit f6e8df4b authored by alexandre's avatar alexandre

Fix permission issue

parent cd3868f5
......@@ -69,7 +69,7 @@ class ScoreSerializer(TaggitSerializer, serializers.HyperlinkedModelSerializer):
return instance
def get_is_editable(self, obj):
return self.context['request'].user.has_perm('edit_score', obj)
return self.context['request'].user.has_perm('change_score', obj)
def update(self, instance, validated_data):
instance = super(ScoreSerializer, self).update(instance, validated_data)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment