@@ -159,8 +159,8 class Query < ActiveRecord::Base | |||||
159 |
|
159 | |||
160 | after_save do |query| |
|
160 | after_save do |query| | |
161 | if query.visibility_changed? && query.visibility != VISIBILITY_ROLES |
|
161 | if query.visibility_changed? && query.visibility != VISIBILITY_ROLES | |
162 |
|
|
162 | query.roles.clear | |
163 |
|
|
163 | end | |
164 | end |
|
164 | end | |
165 |
|
165 | |||
166 | class_attribute :operators |
|
166 | class_attribute :operators |
General Comments 0
You need to be logged in to leave comments.
Login now