mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
adjusting the awFeature controller to return true when a awFeature string is not provided
This commit is contained in:
parent
b07803d2b8
commit
48d211c56b
@ -1,10 +1,6 @@
|
||||
export default ['$rootScope', function ($rootScope) {
|
||||
|
||||
this.isFeatureEnabled = function(feature){
|
||||
if($rootScope.features[feature] === false){
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
return $rootScope.features[feature] || false;
|
||||
};
|
||||
}];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user