You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the user logs in to the system, I store his data in a localStorage, within a service. Based on this, I need to set up a menu with the permissions of each user. Each menu item is in a BlurAdmin module. I can recover the data, however I can not hide the link, if the user does not have the permission. Here is the code:
Note that within the loop, I make a check if the user data is the same as the rules. The problem is that even though I check that they are different, I can not hide the Dashboard link. I already tried everything, with no success.
How could I do this, for example, depending on localStorage data:
After the user logs in to the system, I store his data in a localStorage, within a service. Based on this, I need to set up a menu with the permissions of each user. Each menu item is in a BlurAdmin module. I can recover the data, however I can not hide the link, if the user does not have the permission. Here is the code:
`(function() {
'use strict';
})(); `
Note that within the loop, I make a check if the user data is the same as the rules. The problem is that even though I check that they are different, I can not hide the Dashboard link. I already tried everything, with no success.
How could I do this, for example, depending on localStorage data:
// if baSidebarService.getStorage() == true url: $scope.dashboard, templateUrl: $scope.template, title: $scope.title, sidebarMeta: $scope.sidebar,
The text was updated successfully, but these errors were encountered: