From 1f2d16d47b383fe445f17d13e32409505a3b4356 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 26 Apr 2016 07:04:48 +0200 Subject: Renamed a function to is_authorized? --- src/web/views/api/v3/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/web/views/api/v3/common.py') diff --git a/src/web/views/api/v3/common.py b/src/web/views/api/v3/common.py index 4234a91a..00e5b3f9 100644 --- a/src/web/views/api/v3/common.py +++ b/src/web/views/api/v3/common.py @@ -26,7 +26,7 @@ def auth_func(*args, **kw): class AbstractProcessor(): - def is_authorized_to_modify(self, user, obj): + def is_authorized(self, user, obj): return user.id == obj.user_id def get_single_preprocessor(self, instance_id=None, **kw): -- cgit