Fix search button clause in ModelButton.get_groups

CVE-2012-2238
issue2757
review478002
This commit is contained in:
Cédric Krier
2012-09-10 18:02:03 +02:00
parent 4dcb7b6dd3
commit 4509595762
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
* Fix search button clause in ModelButton.get_groups (CVE-2012-2238)
* Merge all kind of buttons
* Use XML id for board action instead of id
* Add states attribute to notebook
+1 -1
View File
@@ -555,7 +555,7 @@ class ModelButton(ModelSQL, ModelView):
Return a set of group ids for the named button on the model.
'''
button_ids = self.search([
('model', '=', model),
('model.model', '=', model),
('name', '=', name),
])
if not button_ids: