mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
parent
34e00e15c2
commit
f074f28db7
2 changed files with 18 additions and 16 deletions
|
@ -74,6 +74,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
if(Array.isArray($scope.users)){
|
||||
|
||||
var existingUsername = $scope.users.some(function (u) {
|
||||
return u.username === $scope.user.username;
|
||||
});
|
||||
|
@ -81,6 +83,7 @@
|
|||
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) {
|
||||
|
@ -92,6 +95,8 @@
|
|||
clearCheckboxes();
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
};
|
||||
|
||||
// Watch the checkboxes for updates (Creating a user)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue