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
  • Loading branch information
cedk committed Sep 10, 2012
1 parent 4dcb7b6 commit 4509595
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion trytond/ir/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,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 4509595

Please sign in to comment.