From 65548e924d03b63af3c9e572d248a9cb4dd3bd58 Mon Sep 17 00:00:00 2001 From: eisbilir Date: Thu, 6 Oct 2022 18:57:48 +0300 Subject: [PATCH] fix manual user activation --- src/app/users/users.controller.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/app/users/users.controller.js b/src/app/users/users.controller.js index df4a780..b177ece 100644 --- a/src/app/users/users.controller.js +++ b/src/app/users/users.controller.js @@ -114,10 +114,6 @@ module.controller('users.UserSearchController', [ $scope.activate = function(index) { $alert.clear(); var user = $scope.users[index]; - if(!user.credential || !user.credential.activationCode) { - $alert.error('The user \'' + user.handle + '\' is invalid. Unable to activate it.', $scope); - return; - }; var confirmation = 'Are you sure you want to activate user \'' + user.handle + '\'?'; if(!user.emailActive) {