Refactor checkin table to attendance table
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -36,10 +36,6 @@ func Update(c *gin.Context) {
|
||||
user.Email = ReqInfo.Email
|
||||
user.Nickname = ReqInfo.Nickname
|
||||
user.Subtitle = ReqInfo.Subtitle
|
||||
// Cant change user type under permission 2
|
||||
if user.PermissionLevel >= 2 {
|
||||
user.Type = ReqInfo.Type
|
||||
}
|
||||
|
||||
// Update user info
|
||||
user.UpdateByUserID(userId.(uuid.UUID))
|
||||
|
||||
Reference in New Issue
Block a user