Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
Fix search button clause in ModelButton.get_groups
Browse files Browse the repository at this point in the history
CVE-2012-2238
issue2757
review478002
(transplanted from 2c147ff136c745e2e324f4d5db3107f8591ca228)
  • Loading branch information
cedk committed Sep 10, 2012
1 parent db1794c commit 96cd5d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Fix search button clause in ModelButton.get_groups (CVE-2012-2238)

Version 2.4.1 - 2012-04-24
* Restore es_AR translation

Expand Down
2 changes: 1 addition & 1 deletion trytond/ir/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def get_groups(self, model, name):
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:
Expand Down

0 comments on commit 96cd5d5

Please sign in to comment.