Commit 7a9acb27 authored by Morten Nordseth's avatar Morten Nordseth
Browse files

smell - temporary field

parent 15b4cb68
Pipeline #128405 failed with stages
......@@ -11,7 +11,7 @@ class IsCommentVisibleToUser(permissions.BasePermission):
- The comment is on a workout owned by the user
def has_object_permission(self, request, view, obj):
def has_object_permission(self, request, obj):
# Write permissions are only allowed to the owner.
return (
obj.workout.visibility == "PU"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment