Skip to content

lpp-32: return user vintage only if student#35

Merged
RiedleroD merged 6 commits intomainfrom
lpp-32-handle-teacher-vintage
Dec 17, 2024
Merged

lpp-32: return user vintage only if student#35
RiedleroD merged 6 commits intomainfrom
lpp-32-handle-teacher-vintage

Conversation

@RiedleroD
Copy link
Contributor

also includes some refactors regarding how user capabilities are handled

TODO: test on testserver

@RiedleroD RiedleroD added the bug label Dec 14, 2024
@RiedleroD RiedleroD requested a review from mcquenji December 14, 2024 20:21
@RiedleroD RiedleroD self-assigned this Dec 14, 2024
@RiedleroD
Copy link
Contributor Author

I'm aware the docs gen is unhappy, this will be fixed in a separate PR (see lpp-34)

@mcquenji
Copy link
Contributor

Doesn't seem to be working

image

{
  "userid": 4,
  "username": "***",
  "firstname": "***",
  "lastname": "***",
  "capabilities": 0,
  "theme": "Ocean",
  "lang": "en",
  "profileimageurl": "***",
  "planid": 2,
  "colorblindness": "none",
  "displaytaskcount": 1,
  "vintage": null
}

looks like mixed is a php>=8.0.0 feature
mcquenji
mcquenji previously approved these changes Dec 17, 2024
Copy link
Contributor

@mcquenji mcquenji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RiedleroD RiedleroD merged commit dff805e into main Dec 17, 2024
2 checks passed
@RiedleroD RiedleroD deleted the lpp-32-handle-teacher-vintage branch December 17, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants