mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
REFACTOR: Track manual locked user levels separately from groups
This commit is contained in:
parent
87ada55e67
commit
77f90876d3
24 changed files with 226 additions and 185 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue