mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 21:16:17 +02:00
Add per-server permissions
This commit is contained in:
@@ -11,7 +11,7 @@ const findById = async (user: AuthUser, options: { id: string }) => {
|
||||
}
|
||||
|
||||
const uniqueUser = await prisma.user.findUnique({
|
||||
include: { serverFolderPermissions: true },
|
||||
include: { serverFolderPermissions: true, serverPermissions: true },
|
||||
where: { id },
|
||||
});
|
||||
|
||||
@@ -61,7 +61,7 @@ const createUser = async (
|
||||
const createdUser = await prisma.user.create({
|
||||
data: {
|
||||
deviceId: `${username}_${randomString(10)}`,
|
||||
enabled: false,
|
||||
enabled: true,
|
||||
isAdmin,
|
||||
password: hashedPassword,
|
||||
username,
|
||||
|
||||
Reference in New Issue
Block a user