Functionality to modify access levels is operational

This commit is contained in:
phoenix
2025-03-10 19:56:33 -04:00
parent 5d82051ab3
commit f9162fc69c
4 changed files with 79 additions and 18 deletions
+2 -2
View File
@@ -116,9 +116,9 @@ public class SongDataController : BaseController
var accessToken = Request.Headers["Authorization"];
var userId = tokMgr.RetrieveUserIdFromToken(accessToken!);
if (userId != -1)
if (userId != null)
{
song!.UserId = userId;
song!.UserId = userId.Value;
}
_logger!.LogInformation($"Song title: {song!.Title}");