Skip to content

Commit

Permalink
fix validate_permissions method
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Glatthard committed Aug 8, 2015
1 parent 727a07d commit 53056b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipynbsrv/api/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def validate_object_permission(permission_class, request, obj):
Decorator function that calls has_object_permission and raises
a PermissionDenied exception if permission is denied.
"""
if not has_object_permission(CollaborationGroupDetailPermission, request, group):
if not has_object_permission(permission_class, request, obj):
raise PermissionDenied


Expand Down

0 comments on commit 53056b9

Please sign in to comment.