From e5d8e0a6697056abaca997df3f2671ce4d38e492 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sun, 20 Sep 2015 05:01:20 -0700 Subject: [PATCH] User.pm: avoid dying with bad project while removing a user Signed-off-by: Kyle J. McKay --- Girocco/User.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Girocco/User.pm b/Girocco/User.pm index 8699c16..5698a9b 100644 --- a/Girocco/User.pm +++ b/Girocco/User.pm @@ -391,7 +391,7 @@ sub remove { require Girocco::Project; foreach ($self->get_projects) { - if (Girocco::Project::does_exist($_)) { + if (Girocco::Project::does_exist($_, 1)) { my $project = Girocco::Project->load($_); $project->update if $project->remove_user($self->{name}); } -- 2.11.4.GIT