X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Factions.py;h=b7ee9a0a14c8ee2de4a6206c829bb14e0f2a188c;hb=8cd0d0762c9a12848bbbaa352e1eb0e5f5653743;hp=7e231d2a448c69c7d4ef3abe401082225d7a4a30;hpb=8d6e4e94bf9f894ab6059ef70debb32e7ec0192f;p=unfold.git diff --git a/portal/actions.py b/portal/actions.py index 7e231d2a..b7ee9a0a 100644 --- a/portal/actions.py +++ b/portal/actions.py @@ -445,7 +445,8 @@ def delete_local_user(wsgi_request, user_email): user_config = json.loads(user[0]['config']) authority_hrn = user_config.get('authority', None) - if is_pi(wsgi_request, '$user_hrn', authority_hrn): + #if is_pi(wsgi_request, '$user_hrn', authority_hrn): + try: # removing from Django auth_user UserModel = get_user_model() UserModel._default_manager.filter(email__iexact = user_email).delete() @@ -455,9 +456,9 @@ def delete_local_user(wsgi_request, user_email): # removing manifold user manifold_delete_user(wsgi_request, user_id) - else: - return False - #raise Exception, "No sufficient rights on authority = ",authority_hrn + except Exception, e: + #return False + print "No sufficient rights on authority = ",authority_hrn return True