Permalink
Browse files

Really return a list for permissions.

  • Loading branch information...
1 parent f7dacbb commit 0bf0e09dae55cf9fd922d851d0173ea461014374 @mitar mitar committed Mar 28, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 componentpermissions/api.py
@@ -93,12 +93,14 @@ def _get_bypass(self, ticket, username):
def get_permission_actions(self):
"""Return a list of actions defined by this component."""
- yield 'COMPONENT_VIEW'
+ permissions = ['COMPONENT_VIEW']
for component in model.Component.select(self.env):
permission = self._get_permission_name(component.name)
if permission:
- yield permission
+ permissions.apend(permission)
+
+ return permissions
# IPermissionPolicy methods

0 comments on commit 0bf0e09

Please sign in to comment.