From: tonyxiao Date: Mon, 9 Jul 2012 09:09:29 +0000 (-0700) Subject: Fixed bug where FLICKR_AUTH_EXTRA_ARGUMENTS's `perms` configuration is ignored by... X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=cb5284ff0b18621ee3c57106ee9f498967a8fdd3;p=django-social-auth.git Fixed bug where FLICKR_AUTH_EXTRA_ARGUMENTS's `perms` configuration is ignored by the backend. --- diff --git a/social_auth/backends/contrib/flickr.py b/social_auth/backends/contrib/flickr.py index 64a935c..7e93298 100644 --- a/social_auth/backends/contrib/flickr.py +++ b/social_auth/backends/contrib/flickr.py @@ -83,7 +83,8 @@ class FlickrAuth(ConsumerBasedOAuth): def auth_extra_arguments(self): params = super(FlickrAuth, self).auth_extra_arguments() or {} - params['perms'] = 'read' + if not 'perms' in params: + params['perms'] = 'read' return params