(
self,
user_id='')
| 761 | @identity.require( |
| 762 | identity.in_group("admin")) |
| 763 | def adminUser( |
| 764 | self, |
| 765 | user_id=''): |
| 766 | |
| 767 | if user_id: |
| 768 | user = User.query.filter_by(user_id=user_id).first() |
| 769 | if user: |
| 770 | users = [user] |
| 771 | else: |
| 772 | users = [] |
| 773 | else: |
| 774 | users = User.query().all() |
| 775 | |
| 776 | return { |
| 777 | 'user_id': user_id, |
| 778 | 'users': users, |
| 779 | } |
| 780 | |
| 781 | |
| 782 | ######################################################################## |
nothing calls this directly
no outgoing calls
no test coverage detected