Fix OR predicate for mysql on prototype permissions.

This commit is contained in:
yackob03 2014-01-22 12:13:51 -05:00
parent 459f30c123
commit ea6ec52689

View file

@ -831,8 +831,8 @@ def create_repository(namespace, name, creating_user, visibility='private'):
if creating_user.username != namespace:
# Permission prototypes only work for orgs
org = get_organization(namespace)
user_clause = (PermissionPrototype.activating_user == creating_user |
PermissionPrototype.activating_user >> None)
user_clause = ((PermissionPrototype.activating_user == creating_user) |
(PermissionPrototype.activating_user >> None))
team_protos = (PermissionPrototype
.select()