Skip to content

Commit d7f4615

Browse files
authored
Merge pull request #100 from dahabi/master
Only show security options for Enterprise
2 parents 4228dd1 + 4763275 commit d7f4615

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

control/design/design.controller.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,17 @@
66
.controller('folderPluginCtrl', ['$scope', 'Utility',
77
function ($scope, Utility) {
88
$scope.availableLayouts = Utility.getLayouts();
9+
$scope.enterpriseApp = false;
910
$scope.data = Utility.getDefaultScopeData();
1011
$scope.datastoreInitialized = false;
11-
12+
buildfire.getContext(function(error,result){
13+
if(error)
14+
console.error(error);
15+
else {
16+
if (result && result.configType && result.configType == "enterprise")
17+
$scope.enterpriseApp = true;
18+
}
19+
});
1220
//Go pull any previously saved data
1321
buildfire.datastore.getWithDynamicData(function (err, result) {
1422
if (!err) {

control/design/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
</div>
9292
</div>
9393
</div>
94-
<hr>
95-
<div class="padded padding-top-ten clearfix" >
94+
<hr ng-if="enterpriseApp" >
95+
<div ng-if="enterpriseApp" class="padded padding-top-ten clearfix" >
9696
<div class="item clearfix row">
9797
<div class="labels col-md-3 padding-right-zero pull-left">
9898
<span>Secured Feature Visibility</span>

0 commit comments

Comments
 (0)