code: def show_actions(email, role):
      
      if email:
          actions = ActionUsers.query.join(ActionUsers.user).filter(
              User.email.in_(email)
          ).all()
          for action in actions:
              click.secho('user:{0}:{1}:{2}:{3}'.format(
                  action.user.email,
                  action.action,
                  '' if action.argument is None else action.argument,
                  'deny' if action.exclude else 'allow',
              ), fg='red' if action.exclude else 'green')
  
      if role:
          actions = ActionRoles.query.filter(
              Role.name.in_(role)
          ).join(ActionRoles.role).all()
          for action in actions:
              click.secho('role:{0}:{1}:{2}:{3}'.format(
                  action.role.name,
                  action.action,
                  '' if action.argument is None else action.argument,
                  'deny' if action.exclude else 'allow',
              ), fg='red' if action.exclude else 'green')
docs: Show all assigned actions.