Commit 40310dbe authored by Jérome Perrin's avatar Jérome Perrin

fixup! ERP5Security: make ERP5AccessTokenExtractionPlugin work with user ids

Don't try to warn for customization of old API, this is expensive, not
something we usually do and anyway probably useless.
parent fd760cc7
......@@ -88,12 +88,6 @@ class ERP5AccessTokenExtractionPlugin(BasePlugin):
# Check restricted access of URL
# Extract login information
if token_document is not None:
# Token API changed from returning a login to returning a user id.
# We detect if the old way of configuration is still in place and
# advise that configuration has to be updated in that case.
method = token_document._getTypeBasedMethod('getExternalLogin')
assert method is None, "Please update and remove obsolete method %r" % method
user_id = None
method = token_document._getTypeBasedMethod('getUserId')
if method is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment