From 9409eb5ae661d30385bb53f32e5bacb05fddedf9 Mon Sep 17 00:00:00 2001 From: Trevor Allison Date: Tue, 1 Aug 2023 13:22:09 +0000 Subject: [PATCH] remove unecessary file to fix linting error --- .../Details/ActivationKeyDetailsHelpers.js | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 webpack/scenes/ActivationKeys/Details/ActivationKeyDetailsHelpers.js diff --git a/webpack/scenes/ActivationKeys/Details/ActivationKeyDetailsHelpers.js b/webpack/scenes/ActivationKeys/Details/ActivationKeyDetailsHelpers.js deleted file mode 100644 index c08a2f70a28..00000000000 --- a/webpack/scenes/ActivationKeys/Details/ActivationKeyDetailsHelpers.js +++ /dev/null @@ -1,22 +0,0 @@ -import { propsToCamelCase } from 'foremanReact/common/helpers'; - -export const REMOTE_EXECUTION = 'remoteExecution'; -export const KATELLO_AGENT = 'katelloAgent'; - - -export const akIsNotRegistered = ({ akDetails }) => { - const { - purpose_usage: purposeUsage, - purpose_role: purposeRole, - release_version: releaseVersion, - service_level: serviceLevel, - } = akDetails; - return !purposeUsage?.uuid; -}; - -export const akIsRegistered = ({ akDetails }) => !akIsNotRegistered({ akDetails }); - -export const akHasRequiredPermissions = (requiredPermissions = [], userPermissions = {}) => { - const permittedActions = Object.keys(userPermissions).filter(key => userPermissions[key]); - return requiredPermissions.every(permission => permittedActions.includes(permission)); -};