mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-16 20:48:37 -04:00
add new endpoint to get organisations and services for a user
contains orgs, and unmapped services. the orgs contain nested services - services the user is a part of that belong to that org. the unmapped services are any services that the user is a part of that either don't have an org or have one that the user doesn't know about
This commit is contained in:
@@ -120,7 +120,7 @@ class User(db.Model):
|
||||
organisations = db.relationship(
|
||||
'Organisation',
|
||||
secondary='user_to_organisation',
|
||||
backref=db.backref('user_to_organisation', lazy='dynamic'))
|
||||
backref=db.backref('users', lazy='dynamic'))
|
||||
|
||||
@property
|
||||
def password(self):
|
||||
|
||||
Reference in New Issue
Block a user