comparison webapollo.py @ 6:0e47d146590b draft

planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/apollo commit d9f27b297d9a919471c92b02ecf6cc9554457211
author gga
date Tue, 30 Oct 2018 04:29:01 -0400
parents 950fb2bf116d
children c3b5bc8b4080
comparison
equal deleted inserted replaced
5:950fb2bf116d 6:0e47d146590b
1542 1542
1543 def accessible_organisms(user, orgs): 1543 def accessible_organisms(user, orgs):
1544 permissionMap = { 1544 permissionMap = {
1545 x['organism']: x['permissions'] 1545 x['organism']: x['permissions']
1546 for x in user.organismPermissions 1546 for x in user.organismPermissions
1547 if 'WRITE' in x['permissions'] or 1547 if 'WRITE' in x['permissions'] or 'READ' in x['permissions'] or 'ADMINISTRATE' in x['permissions'] or user.role == 'ADMIN'
1548 'READ' in x['permissions'] or
1549 'ADMINISTRATE' in x['permissions'] or
1550 user.role == 'ADMIN'
1551 } 1548 }
1552 1549
1553 if 'error' in orgs: 1550 if 'error' in orgs:
1554 raise Exception("Error received from Apollo server: \"%s\"" % orgs['error']) 1551 raise Exception("Error received from Apollo server: \"%s\"" % orgs['error'])
1555 1552