Returns list of user permissions for project
(project_string_id)
| 86 | methods = ['GET']) |
| 87 | @Project_permissions.user_has_project(["admin", "Editor", "Viewer"]) |
| 88 | def share_view_list_api(project_string_id): |
| 89 | """ |
| 90 | Returns list of user permissions for project |
| 91 | """ |
| 92 | |
| 93 | with sessionMaker.session_scope() as session: |
| 94 | project = Project.get(session, project_string_id) |
| 95 | |
| 96 | members_list = project.regenerate_member_list() |
| 97 | |
| 98 | auth_api_list = Auth_api.list_by_project(session, project_string_id) |
| 99 | |
| 100 | # CAREFUL does permission here match with route permission? |
| 101 | # ie allow view, than can't show client secret from auth_api |
| 102 | for auth_api in auth_api_list: |
| 103 | members_list.append(auth_api.serialize()) |
| 104 | |
| 105 | return jsonify(success = True, |
| 106 | members_list = members_list), 200 |
| 107 | |
| 108 | |
| 109 | class Share_Project(): |
nothing calls this directly
no test coverage detected