mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
more renaming of trust level settings
This commit is contained in:
parent
7466af9786
commit
fad0394a40
@ -225,7 +225,7 @@ Discourse.Post = Discourse.Model.extend({
|
||||
setDeletedState: function(deletedBy) {
|
||||
this.set('oldCooked', this.get('cooked'));
|
||||
|
||||
// Moderators can delete posts. Regular users can only trigger a deleted at message.
|
||||
// Moderators can delete posts. Users can only trigger a deleted at message.
|
||||
if (deletedBy.get('staff')) {
|
||||
this.setProperties({
|
||||
deleted_at: new Date(),
|
||||
|
@ -54,7 +54,7 @@ module ::PollPlugin
|
||||
@post.errors.add(:poll_options, I18n.t('poll.cannot_add_or_remove_options'))
|
||||
end
|
||||
else
|
||||
# Regular user, tell them to contact a moderator.
|
||||
# not staff, tell them to contact one.
|
||||
@post.errors.add(:poll_options, I18n.t('poll.cannot_have_modified_options'))
|
||||
end
|
||||
end
|
||||
|
@ -63,7 +63,7 @@ describe SpamRulesEnforcer do
|
||||
Then { expect(spammer.reload).to be_blocked }
|
||||
end
|
||||
|
||||
context "spammer becomes a basic user" do
|
||||
context "spammer becomes trust level 1" do
|
||||
When { spammer.change_trust_level!(:basic); spammer.reload }
|
||||
Then { expect(spammer.reload).to be_blocked }
|
||||
end
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user