fixes #2716: Wiki pages should be undeletable

This commit is contained in:
Albert Yi
2016-10-18 15:17:50 -07:00
parent 2a5343b8cf
commit e78b7d2a8c
12 changed files with 55 additions and 24 deletions

View File

@@ -41,7 +41,7 @@ class WikiPageVersion < ActiveRecord::Base
end
def visible?
artist.blank? || !artist.is_banned? || CurrentUser.is_moderator?
artist.blank? || !artist.is_banned? || CurrentUser.is_builder?
end
def other_names_array