mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-05 06:23:22 +00:00
Refactor database model references to use consistent naming conventions and update related queries
This commit is contained in:
@@ -6,7 +6,7 @@ const requirePermission = (permission) => {
|
||||
return async (req, res, next) => {
|
||||
try {
|
||||
// Get user's role permissions
|
||||
const rolePermissions = await prisma.rolePermissions.findUnique({
|
||||
const rolePermissions = await prisma.role_permissions.findUnique({
|
||||
where: { role: req.user.role }
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user