block dashboard on disabled account

This commit is contained in:
SowinskiBraeden committed 2022-05-28 11:09:45 -07:00
1 parent c054e3f065
commit 9d44f98ff1
1 file changed
+7
+7
View File
@@ -836,6 +836,13 @@ func Student(c *fiber.Ctx) error {
}) })
} }
if student.AccountData.AccountDisabled {
return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{
"success": false,
"message": "Student Accound Disabled, Contact and Admin",
})
}
responseData["student"] = student responseData["student"] = student
var locker models.Locker var locker models.Locker