Skip to content

Show a school account's own picture on account rows - #580

Merged
PianoNic merged 1 commit into
mainfrom
feature/579_SchoolAccountPicture
Nov 10, 2026
Merged

PianoNic merged 1 commit into
mainfrom
feature/579_SchoolAccountPicture

Conversation

@PianoNic

Copy link
Copy Markdown
Member

Summary

  • New nullable SchoolUser.AccountPictureKey (migration AddSchoolUserAccountPicture), set by plugins through ILinkedAccounts.SetSchoolUserPictureAsync (Schuly.Plugin.Abstractions 0.11.4). Only the owner's own school users, same validation as SetPictureAsync (bytes decide the type, 2 MB cap, previous blob deleted, null clears).
  • Account rows now resolve: school account picture > linked account picture > school profile ProfilePictureUrl.
  • Served owner-only at GET /api/avatars/school-accounts/{schoolUserId} (default sign-in policy, 404 for anyone else).
  • Purged with the account and counted as referenced by the orphan blob sweep. Docs updated.

Closes #579

@PianoNic PianoNic added the feature New feature label Nov 10, 2026
@PianoNic
PianoNic merged commit 8120000 into main Nov 10, 2026
2 checks passed
@PianoNic
PianoNic deleted the feature/579_SchoolAccountPicture branch November 10, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show a school account's own picture on account rows

1 participant