From 4c06eb64cbed3562e428ce59857d1763098638f3 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Wed, 19 Nov 2025 09:15:49 +0100 Subject: allow images to upload and sort if according to their datetime --- src/routes/api/session/current.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/routes/api/session') diff --git a/src/routes/api/session/current.zig b/src/routes/api/session/current.zig index e86c115..897d01c 100644 --- a/src/routes/api/session/current.zig +++ b/src/routes/api/session/current.zig @@ -9,6 +9,7 @@ const Result = struct { name: []const u8, full_name: []const u8, birthday: []const u8, + is_admin: bool, }; pub fn get(ctx: *Context) !Result { @@ -21,5 +22,6 @@ pub fn get(ctx: *Context) !Result { .name = session.info.name, .full_name = session.info.full_name, .birthday = session.info.birthday, + .is_admin = session.info.is_admin, }; } -- cgit v1.2.3-70-g09d2