Website Summary Files Commits Branches @commit @diff @stats
path: root / API / Service / UserService.cs
diff options
context:
space:
mode:
Commite0642bea9392f5fdab92f70622e671f9fd7ee0c7 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2020-12-11 21:30:39 +0200
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2020-12-11 21:30:39 +0200
Files56f47760c4884f7f9fa227603c5697924381b08d /API/Service/UserService.cs
DevHive-e0642bea9392f5fdab92f70622e671f9fd7ee0c7.tar
DevHive-e0642bea9392f5fdab92f70622e671f9fd7ee0c7.tar.gz
DevHive-e0642bea9392f5fdab92f70622e671f9fd7ee0c7.zip
Parent6ccb8618f2fe79e61702b0ba0ce48182d9293943 (diff)
Renamed custom Roles class to UserRoles, fixing naming ambiguity
1 files changed, 1 insertions, 1 deletions
-rw-r--r--API/Service/UserService.cs2
diff --git a/API/Service/UserService.cs b/API/Service/UserService.cs
index 453e5f4..b715f8c 100644
--- a/API/Service/UserService.cs
+++ b/API/Service/UserService.cs
@@ -60,7 +60,7 @@ namespace API.Service
User user = this._userMapper.Map<User>(userDTO);
if (user.Role == null)
- user.Role = Roles.User;
+ user.Role = UserRoles.User;
await this._userDbRepository.AddAsync(user);