From efd7c88404fc58d0dc8cd495ba2e33b9e9034e0b Mon Sep 17 00:00:00 2001
From: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Date: Fri, 30 Oct 2020 09:32:06 -0700
Subject: Fix eslint no-prototype-builtins errors

Made updates to TableToolbar, ModalAddRoleGroup, and ModalUploadCertificate
components.

https://eslint.org/docs/rules/no-prototype-builtins

Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: Ic143cd244b288bc089a9416699d7c3d4349a500c
---
 src/views/AccessControl/Ldap/ModalAddRoleGroup.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/views/AccessControl/Ldap/ModalAddRoleGroup.vue')

diff --git a/src/views/AccessControl/Ldap/ModalAddRoleGroup.vue b/src/views/AccessControl/Ldap/ModalAddRoleGroup.vue
index b9b1f5aaa..b485eadd1 100644
--- a/src/views/AccessControl/Ldap/ModalAddRoleGroup.vue
+++ b/src/views/AccessControl/Ldap/ModalAddRoleGroup.vue
@@ -92,8 +92,8 @@ export default {
       validator: (prop) => {
         if (prop === null) return true;
         return (
-          prop.hasOwnProperty('groupName') &&
-          prop.hasOwnProperty('groupPrivilege')
+          Object.prototype.hasOwnProperty.call(prop, 'groupName') &&
+          Object.prototype.hasOwnProperty.call(prop, 'groupPrivilege')
         );
       },
     },
-- 
cgit v1.2.3

