don't call unexisting methods
git-svn-id: svn://localhost/lasso-conform/trunk@32 2a3a78c3-912c-0410-af21-e1fb2d1df599
This commit is contained in:
parent
7759d9b31c
commit
d5899ed8a6
|
@ -177,7 +177,8 @@ class UserPage(Directory):
|
|||
else:
|
||||
ident_methods = get_cfg('identification', {}).get('methods', [])
|
||||
for klass in [x for x in qommon.ident.get_method_classes() if x.key in ident_methods]:
|
||||
klass().delete(self.user)
|
||||
if hasattr(klass, 'delete'):
|
||||
klass().delete(self.user)
|
||||
self.user.remove_self()
|
||||
return redirect('..')
|
||||
|
||||
|
|
Reference in New Issue