Skip to content

Commit

Permalink
Removing is_ticketing_Enabled from schema
Browse files Browse the repository at this point in the history
  • Loading branch information
kushthedude committed Nov 29, 2019
1 parent cc92646 commit 22ee688
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/events.py
Expand Up @@ -56,7 +56,7 @@ def validate_event(user, modules, data):
if not user.can_create_event():
raise ForbiddenException({'source': ''},
"Please verify your Email")
elif and not modules.ticket_include:
elif not modules.ticket_include:
raise ForbiddenException({'source': ''},
"Ticketing is not enabled in the system")
if data.get('can_pay_by_paypal', False) or data.get('can_pay_by_cheque', False) or \
Expand Down
2 changes: 2 additions & 0 deletions tests/hook_main.py
Expand Up @@ -361,6 +361,8 @@ def event_patch(transaction):
:return:
"""
with stash['app'].app_context():
module = ModuleFactory()
db.session.add(module)
event = EventFactoryBasic()
db.session.add(event)
db.session.commit()
Expand Down

0 comments on commit 22ee688

Please sign in to comment.