Skip to content

Implement Parent API #61

Open
Open
@niicojs

Description

@niicojs

It would be nice to implement parent api.
From the very limited tests I've done, it seems to be the student api with an additionnal field in signature to tell which resource to impersonate.

Adding those few lines in request-function.ts did the trick in my little test:

    if (this.session?.user && this.data?._Signature_) {
      if (this.session.information.accountKind === AccountKind.PARENT) {
        this.data._Signature_.membre = {
          N: this.session.user.resources.at(0)?.id,
          G: 4,
        };
      }
    }

I don't know what the 4 is for :)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions