Skip to content

Commit

Permalink
Merge pull request #52 from peletiah/master
Browse files Browse the repository at this point in the history
Typo in services/resource.py line 225 - 'GroupResourcePermission' has no attribute 'perm_id'
  • Loading branch information
ergo committed Feb 19, 2017
2 parents 84881ca + 1968f21 commit 7a70bfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ Contributors:
* Arian Maykon de Araújo Diógenes (arianmaykon) 2016-04-19
* Edward Arghiroiu (themightyonyx) 2015-11-13
* Łukasz Bołdys (utek) 2013-11-22
* Christian Benke (peletiah) 2017-02-19
2 changes: 1 addition & 1 deletion ziggurat_foundations/models/services/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def perm_by_group_and_perm_name(cls, resource_id, group_id, perm_name,
query = query.filter(
cls.models_proxy.GroupResourcePermission.group_id == group_id)
query = query.filter(
cls.models_proxy.GroupResourcePermission.perm_id == perm_name)
cls.models_proxy.GroupResourcePermission.perm_name == perm_name)
query = query.filter(
cls.models_proxy.GroupResourcePermission.resource_id == resource_id)
return query.first()
Expand Down

0 comments on commit 7a70bfd

Please sign in to comment.