summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/Global/TableToolbar.vue3
-rw-r--r--src/views/AccessControl/Ldap/ModalAddRoleGroup.vue4
-rw-r--r--src/views/AccessControl/SslCertificates/ModalUploadCertificate.vue3
3 files changed, 6 insertions, 4 deletions
diff --git a/src/components/Global/TableToolbar.vue b/src/components/Global/TableToolbar.vue
index 6a856b44..cb6fa240 100644
--- a/src/components/Global/TableToolbar.vue
+++ b/src/components/Global/TableToolbar.vue
@@ -44,7 +44,8 @@ export default {
validator: (prop) => {
return prop.every((action) => {
return (
- action.hasOwnProperty('value') && action.hasOwnProperty('label')
+ Object.prototype.hasOwnProperty.call(action, 'value') &&
+ Object.prototype.hasOwnProperty.call(action, 'label')
);
});
},
diff --git a/src/views/AccessControl/Ldap/ModalAddRoleGroup.vue b/src/views/AccessControl/Ldap/ModalAddRoleGroup.vue
index b9b1f5aa..b485eadd 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')
);
},
},
diff --git a/src/views/AccessControl/SslCertificates/ModalUploadCertificate.vue b/src/views/AccessControl/SslCertificates/ModalUploadCertificate.vue
index 070dd0dc..50df9a42 100644
--- a/src/views/AccessControl/SslCertificates/ModalUploadCertificate.vue
+++ b/src/views/AccessControl/SslCertificates/ModalUploadCertificate.vue
@@ -83,7 +83,8 @@ export default {
validator: (prop) => {
if (prop === null) return true;
return (
- prop.hasOwnProperty('type') && prop.hasOwnProperty('certificate')
+ Object.prototype.hasOwnProperty.call(prop, 'type') &&
+ Object.prototype.hasOwnProperty.call(prop, 'certificate')
);
},
},