Commit 1dcd8aa9 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! erp5_oauth2_resource: Switch upgrader constraint from id to meta_type

parent 3b505df7
......@@ -8,6 +8,7 @@ for plugin_value in user_folder.objectValues():
if getattr(plugin_value, 'meta_type', None) == 'ERP5 OAuth2 Resource Server Plugin':
break
else:
plugin_id = 'erp5_oauth2_resource' # XXX hardcoded
error_list.append('PAS plugin %r does not exist' % (plugin_id, ))
if fixit:
user_folder.manage_addProduct['ERP5Security'].addERP5OAuth2ResourceServerPlugin(
......
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