Fix permission issue on membership
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -1076,7 +1076,7 @@ func (r *membershipResolver) AuthMethod(ctx context.Context, obj *types.Membersh
|
|||||||
return coredata.UserAuthMethodPassword, nil
|
return coredata.UserAuthMethodPassword, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
auth := r.AuthService(ctx, obj.UserID.TenantID())
|
auth := r.AuthService(ctx, obj.OrganizationID.TenantID())
|
||||||
|
|
||||||
authMethod, err := auth.GetUserAuthMethod(ctx, obj.UserID, obj.OrganizationID, session)
|
authMethod, err := auth.GetUserAuthMethod(ctx, obj.UserID, obj.OrganizationID, session)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user