Permalink
Browse files

FixPP: check for edit-protection when {{pp}}

  • Loading branch information...
MusikAnimal committed Mar 22, 2016
1 parent 6685e77 commit b617b09240cbf1831fb334572736ab4098751e5b
Showing with 1 addition and 1 deletion.
  1. +1 −1 tasks/fix_pp.rb
View
@@ -75,7 +75,7 @@ def self.remove_pps_as_necessary
# if a type couldn't be parsed, assume it means edit-protection if it's pp-protected
if type.blank?
if old_pp_type == 'pp-protected' || !protected?(@page_obj)
if old_pp_type == 'pp-protected' || !protected?(@page_obj) || protection_by_type(@page_obj, 'edit').nil?
type = 'edit'
else
# auto generate template task is disabled, just skip and try to repair subsequent ones accordingly

0 comments on commit b617b09

Please sign in to comment.