Update temp_file.
This commit is contained in:
parent
e237aba5f2
commit
c6ed0c8112
|
@ -151,6 +151,10 @@ class Site
|
||||||
# puts "cache header failed"
|
# puts "cache header failed"
|
||||||
# end
|
# end
|
||||||
@changed = self.changed?
|
@changed = self.changed?
|
||||||
|
if self.privileged_ip_login_only_changed? && self.privileged_ip_login_only
|
||||||
|
operation_result = Page.where(:module=>'login_page',:access_level.ne=>'ip').update_all(:access_level=>'ip')
|
||||||
|
self.privileged_page_count += operation_result.modified_count
|
||||||
|
end
|
||||||
if self.privileged_ip_changed?
|
if self.privileged_ip_changed?
|
||||||
self.privileged_ip_range = self.privileged_ip.map do |a, b|
|
self.privileged_ip_range = self.privileged_ip.map do |a, b|
|
||||||
if a.present? && b.blank?
|
if a.present? && b.blank?
|
||||||
|
|
Loading…
Reference in New Issue