Fix OR predicate for mysql on prototype permissions.
This commit is contained in:
parent
459f30c123
commit
ea6ec52689
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Reference in a new issue