mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
REFACTOR: Track manual locked user levels separately from groups
This commit is contained in:
@ -372,12 +372,14 @@ describe Admin::UsersController do
|
||||
@another_user.update_attributes(trust_level: TrustLevel[1])
|
||||
|
||||
put :trust_level, params: {
|
||||
user_id: @another_user.id, level: TrustLevel[0]
|
||||
user_id: @another_user.id,
|
||||
level: TrustLevel[0]
|
||||
}, format: :json
|
||||
|
||||
expect(response).to be_success
|
||||
@another_user.reload
|
||||
expect(@another_user.trust_level_locked).to eq(true)
|
||||
expect(@another_user.trust_level).to eq(TrustLevel[0])
|
||||
expect(@another_user.manual_locked_trust_level).to eq(TrustLevel[0])
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user