Fix Bug 2340: Invalid error message in UI for some role permission

	- Added access denied lack of permission notification while setting vim accounts id get, ns_instances:opps:id:get and  ns_instances:id:get as false.

Change-Id: I220690baacb09231499f24ca2a8138c13f2d56d0
Signed-off-by: SANDHYA.JS <sandhya.j@tataelxsi.co.in>
(cherry picked from commit 898b149c76d80255406030c7ad6e3b515314e0d0)
diff --git a/src/services/RestService.ts b/src/services/RestService.ts
index bea559a..d3d9ea0 100644
--- a/src/services/RestService.ts
+++ b/src/services/RestService.ts
@@ -141,8 +141,11 @@
                     this.notifierService.notify('error', err.error.detail !== undefined ?
                         err.error.detail : this.translateService.instant('HTTPERROR.401'));
                 }
-                this.activeModal.dismissAll();
+            } else {
+                this.notifierService.notify('error', err?.error?.detail !== undefined ?
+                    err?.error?.detail : this.translateService.instant('HTTPERROR.401'));
             }
+            this.activeModal.dismissAll();
         } else if (err.error.status === HttpStatus.BAD_REQUEST) {
             this.notifierService.notify('error', err.error.detail !== undefined ?
                 err.error.detail : this.translateService.instant('HTTPERROR.400'));
@@ -177,7 +180,7 @@
         });
         return {
             url: apiURL,
-            httpOptions: {headers : apiHeaders}
+            httpOptions: { headers: apiHeaders }
         };
     }
 }