mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Fixed #727
This commit is contained in:
parent
8e2b4ac8f4
commit
f381f9765b
4 changed files with 74 additions and 15 deletions
|
@ -74,6 +74,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
var existingUsername = $scope.users.some(function (u) {
|
||||
return u.username === $scope.user.username;
|
||||
});
|
||||
|
||||
if (existingUsername) {
|
||||
return generateNotify("A user with the username " + $scope.user.username + " already exists!", 'danger');
|
||||
}
|
||||
|
||||
userManagementService.addUser($scope.user, $scope.selectedPermissions, $scope.selectedFeatures)
|
||||
.then(function (data) {
|
||||
if (data.message) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue