|
@@ -540,7 +540,7 @@ const app = Vue.createApp({
|
|
edit_history: resultArray
|
|
edit_history: resultArray
|
|
}
|
|
}
|
|
|
|
|
|
- if (rule.email == localStorage.getItem('userEmail')) {
|
|
|
|
|
|
+ if (rule.email != null && rule.email != undefined && rule.email == localStorage.getItem('userEmail')) {
|
|
this.isOwner = true;
|
|
this.isOwner = true;
|
|
this.isAdmin = true; // this will allow the user to delete his own rules
|
|
this.isAdmin = true; // this will allow the user to delete his own rules
|
|
}
|
|
}
|