feat: add admin check for device and payment pages; update session type to include is_admin property ✨
This commit is contained in:
Vendored
+1
@@ -25,6 +25,7 @@ declare module "next-auth" {
|
||||
last_login?: string;
|
||||
date_joined?: string;
|
||||
is_superuser?: boolean;
|
||||
is_admin?: boolean;
|
||||
};
|
||||
expires: ISODateString;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user