aboutsummaryrefslogtreecommitdiff
path: root/src/web/views/api/v3/common.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-04-26 07:04:48 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-04-26 07:04:48 +0200
commit1f2d16d47b383fe445f17d13e32409505a3b4356 (patch)
tree1405ed1c11e6dd81b8f47458e22f567eec736f15 /src/web/views/api/v3/common.py
parentFix conflicts. (diff)
downloadnewspipe-1f2d16d47b383fe445f17d13e32409505a3b4356.tar.gz
newspipe-1f2d16d47b383fe445f17d13e32409505a3b4356.tar.bz2
newspipe-1f2d16d47b383fe445f17d13e32409505a3b4356.zip
Renamed a function to is_authorized?
Diffstat (limited to 'src/web/views/api/v3/common.py')
-rw-r--r--src/web/views/api/v3/common.py2
1 files changed, 1 insertions, 1 deletions
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):
bgstack15