From 53056b986753b067a037cb470b82bdb9ba67a98b Mon Sep 17 00:00:00 2001 From: Christian Glatthard Date: Sat, 8 Aug 2015 14:16:44 +0200 Subject: [PATCH] fix validate_permissions method --- ipynbsrv/api/permissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipynbsrv/api/permissions.py b/ipynbsrv/api/permissions.py index e9f78c5..ae0b1ac 100644 --- a/ipynbsrv/api/permissions.py +++ b/ipynbsrv/api/permissions.py @@ -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