aboutsummaryrefslogtreecommitdiff
path: root/API/Service/UserService.cs
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2020-12-11 21:30:39 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2020-12-11 21:30:39 +0200
commite0642bea9392f5fdab92f70622e671f9fd7ee0c7 (patch)
tree56f47760c4884f7f9fa227603c5697924381b08d /API/Service/UserService.cs
parent6ccb8618f2fe79e61702b0ba0ce48182d9293943 (diff)
downloadDevHive-e0642bea9392f5fdab92f70622e671f9fd7ee0c7.tar
DevHive-e0642bea9392f5fdab92f70622e671f9fd7ee0c7.tar.gz
DevHive-e0642bea9392f5fdab92f70622e671f9fd7ee0c7.zip
Renamed custom Roles class to UserRoles, fixing naming ambiguity
Diffstat (limited to 'API/Service/UserService.cs')
-rw-r--r--API/Service/UserService.cs2
1 files changed, 1 insertions, 1 deletions
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);