mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-25 16:04:22 -05:00
fix task
This commit is contained in:
parent
2d615e4f8f
commit
950e5c9965
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ task "admin:create" => :environment do
|
||||||
grant_admin = ask("Do you want to grant Admin privileges to this account? (Y/n) ")
|
grant_admin = ask("Do you want to grant Admin privileges to this account? (Y/n) ")
|
||||||
if (grant_admin == "" || grant_admin.downcase == 'y')
|
if (grant_admin == "" || grant_admin.downcase == 'y')
|
||||||
admin.grant_admin!
|
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.email_tokens.update_all confirmed: true
|
||||||
admin.activate
|
admin.activate
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue