mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
SECURITY: Make sure uploaded_urls have corresponding upload records
This commit is contained in:
@ -339,7 +339,7 @@ describe User do
|
||||
|
||||
it 'returns false if user is not the only admin' do
|
||||
admin = Fabricate(:admin)
|
||||
second_admin = Fabricate(:admin)
|
||||
Fabricate(:admin)
|
||||
|
||||
expect(admin.is_singular_admin?).to eq(false)
|
||||
end
|
||||
|
Reference in New Issue
Block a user