diff options
Diffstat (limited to 'app/roles/account.rb')
| -rw-r--r-- | app/roles/account.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/roles/account.rb b/app/roles/account.rb index af5b7c88437..21545b91ce1 100644 --- a/app/roles/account.rb +++ b/app/roles/account.rb @@ -45,7 +45,7 @@ module Account # Remove user from all projects and # set blocked attribute to true def block - users_projects.all.each do |membership| + users_projects.find_each do |membership| return false unless membership.destroy end |
