From 950e5c99650904d75a60c7b3cb8f8a2e45e78792 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 5 Sep 2014 17:49:51 +1000 Subject: [PATCH] fix task --- lib/tasks/admin.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/admin.rake b/lib/tasks/admin.rake index dd88fc63a39..9ea3c7b3fc2 100644 --- a/lib/tasks/admin.rake +++ b/lib/tasks/admin.rake @@ -52,7 +52,7 @@ task "admin:create" => :environment do grant_admin = ask("Do you want to grant Admin privileges to this account? (Y/n) ") if (grant_admin == "" || grant_admin.downcase == 'y') admin.grant_admin! - admin.change_trust_level!(TrustLevel.levels.max_by{|k, v| v}[0]) + admin.change_trust_level!(4) admin.email_tokens.update_all confirmed: true admin.activate