diff --git a/seed/static/seed/js/controllers/two_factor_profile_controller.js b/seed/static/seed/js/controllers/two_factor_profile_controller.js index cf9dd2791f..de71ad5974 100644 --- a/seed/static/seed/js/controllers/two_factor_profile_controller.js +++ b/seed/static/seed/js/controllers/two_factor_profile_controller.js @@ -9,7 +9,6 @@ angular.module('SEED.controller.two_factor_profile', []).controller('two_factor_ 'Notification', 'two_factor_service', 'user_service', - 'auth_payload', 'organization_payload', 'user_profile_payload', @@ -21,11 +20,9 @@ angular.module('SEED.controller.two_factor_profile', []).controller('two_factor_ Notification, two_factor_service, user_service, - auth_payload, organization_payload, user_profile_payload ) { - $scope.is_superuser = auth_payload.auth.requires_superuser; $scope.organization = organization_payload.organization; $scope.require_2fa = $scope.organization.require_2fa; $scope.user = user_profile_payload; diff --git a/seed/static/seed/js/seed.js b/seed/static/seed/js/seed.js index 284284ec8f..f5e7923fbd 100644 --- a/seed/static/seed/js/seed.js +++ b/seed/static/seed/js/seed.js @@ -385,15 +385,6 @@ templateUrl: `${static_url}seed/partials/two_factor_profile.html`, controller: 'two_factor_profile_controller', resolve: { - auth_payload: [ - 'auth_service', - '$q', - 'user_service', - (auth_service, $q, user_service) => { - const organization_id = user_service.get_organization().id; - return auth_service.is_authorized(organization_id, ['requires_superuser']); - } - ], organization_payload: [ 'user_service', 'organization_service', diff --git a/seed/static/seed/partials/two_factor_profile.html b/seed/static/seed/partials/two_factor_profile.html index 14dd7de868..a47be88967 100644 --- a/seed/static/seed/partials/two_factor_profile.html +++ b/seed/static/seed/partials/two_factor_profile.html @@ -50,7 +50,7 @@

-
+