mod actions: separate account upgrades from promotions (fix #3841)

This commit is contained in:
evazion
2018-08-25 15:25:26 -05:00
parent 79961c8ed9
commit 6ff70c5002
7 changed files with 31 additions and 20 deletions

View File

@@ -54,7 +54,7 @@ if User.count == 0
:password => "password1",
:password_confirmation => "password1"
)
newuser.promote_to!(User::Levels.const_get(level), {:skip_feedback => true, :skip_dmail => true})
newuser.promote_to!(User::Levels.const_get(level), {:is_upgrade => true, :skip_dmail => true})
end
newuser = User.create(
@@ -69,14 +69,14 @@ if User.count == 0
:password => "password1",
:password_confirmation => "password1"
)
newuser.promote_to!(User::Levels::BUILDER, {:can_upload_free => true, :skip_feedback => true, :skip_dmail => true})
newuser.promote_to!(User::Levels::BUILDER, {:can_upload_free => true, :is_upgrade => true, :skip_dmail => true})
newuser = User.create(
:name => "approver",
:password => "password1",
:password_confirmation => "password1"
)
newuser.promote_to!(User::Levels::BUILDER, {:can_approve_posts => true, :skip_feedback => true, :skip_dmail => true})
newuser.promote_to!(User::Levels::BUILDER, {:can_approve_posts => true, :is_upgrade => true, :skip_dmail => true})
end