Show More
@@ -501,13 +501,12 b' def set_available_permissions(config):' | |||
|
501 | 501 | try: |
|
502 | 502 | sa = meta.Session |
|
503 | 503 | all_perms = sa.query(Permission).all() |
|
504 | config['available_permissions'] = [x.permission_name for x in all_perms] | |
|
504 | 505 | except Exception: |
|
505 | pass | |
|
506 | log.error(traceback.format_exc()) | |
|
506 | 507 | finally: |
|
507 | 508 | meta.Session.remove() |
|
508 | 509 | |
|
509 | config['available_permissions'] = [x.permission_name for x in all_perms] | |
|
510 | ||
|
511 | 510 | |
|
512 | 511 | #============================================================================== |
|
513 | 512 | # CHECK DECORATORS |
General Comments 0
You need to be logged in to leave comments.
Login now