Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit 2abc4d8

Browse files
committed
ref
1 parent 53f0f13 commit 2abc4d8

File tree

4 files changed

+149
-149
lines changed

4 files changed

+149
-149
lines changed

api/models/KongNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var defaultModel = _.merge(_.cloneDeep(require('../base/Model')), {
4141
{
4242
"name" : "default",
4343
"kong_admin_url": "http://localhost:8001",
44-
"active": true
44+
"active": false
4545
}
4646
]
4747
});

api/policies/dynamicNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var _ = require('lodash');
1010
* @param {Function} next Callback function
1111
*/
1212
module.exports = function dynamicNode(request, response, next) {
13-
sails.log.verbose(__filename + ':' + __line + ' [Policy.dynamicNode() called]');
13+
sails.log.debug(__filename + ':' + __line + ' [Policy.dynamicNode() called]',request.headers['kong-admin-url']);
1414

1515

1616
if(!request.headers['kong-admin-url']) return response.badRequest({

assets/js/app/core/layout/03_layout-services.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,31 @@
2323
{
2424
state: 'info',
2525
show : function() {
26-
return AuthService.isAuthenticated()
26+
return AuthService.isAuthenticated() && $rootScope.$node
2727
},
2828
title: 'Node info',
2929
access: AccessLevels.user
3030
},
3131
{
3232
state: 'apis',
3333
show : function() {
34-
return AuthService.isAuthenticated()
34+
return AuthService.isAuthenticated() && $rootScope.$node
3535
},
3636
title: 'APIs',
3737
access: AccessLevels.user
3838
},
3939
{
4040
state: 'consumers',
4141
show : function() {
42-
return AuthService.isAuthenticated()
42+
return AuthService.isAuthenticated() && $rootScope.$node
4343
},
4444
title: 'Consumers',
4545
access: AccessLevels.user
4646
},
4747
{
4848
state: 'plugins',
4949
show : function() {
50-
return AuthService.isAuthenticated()
50+
return AuthService.isAuthenticated() && $rootScope.$node
5151
},
5252
title: 'Plugins',
5353
access: AccessLevels.anon

0 commit comments

Comments
 (0)