mirror of https://github.com/portainer/portainer
fix(app): extensions cache only for rbac (#2904)
parent
dc3a29ad43
commit
608fc497a8
|
@ -56,8 +56,13 @@ angular.module('portainer.app')
|
|||
return deferred.promise;
|
||||
};
|
||||
|
||||
service.extensionEnabled = function(extensionId) {
|
||||
return StateManager.getExtension(extensionId) ? true : false;
|
||||
service.extensionEnabled = async function(extensionId) {
|
||||
if (extensionId === service.EXTENSIONS.RBAC) {
|
||||
return StateManager.getExtension(extensionId) ? true : false;
|
||||
} else {
|
||||
const extension = await Extension.get({id: extensionId}).$promise;
|
||||
return extension.Enabled;
|
||||
}
|
||||
};
|
||||
|
||||
service.retrieveAndSaveEnabledExtensions = async function() {
|
||||
|
|
|
@ -35,6 +35,7 @@ function StateManagerFactory($q, SystemService, InfoHelper, LocalStorage, Settin
|
|||
|
||||
manager.clean = function () {
|
||||
state.endpoint = {};
|
||||
state.extensions = [];
|
||||
};
|
||||
|
||||
manager.updateLogo = function(logoURL) {
|
||||
|
|
Loading…
Reference in New Issue