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

Commit

Permalink
ref
Browse files Browse the repository at this point in the history
  • Loading branch information
pantsel committed Mar 18, 2017
1 parent 53f0f13 commit 2abc4d8
Show file tree
Hide file tree
Showing 4 changed files with 149 additions and 149 deletions.
2 changes: 1 addition & 1 deletion api/models/KongNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var defaultModel = _.merge(_.cloneDeep(require('../base/Model')), {
{
"name" : "default",
"kong_admin_url": "http://localhost:8001",
"active": true
"active": false
}
]
});
Expand Down
2 changes: 1 addition & 1 deletion api/policies/dynamicNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var _ = require('lodash');
* @param {Function} next Callback function
*/
module.exports = function dynamicNode(request, response, next) {
sails.log.verbose(__filename + ':' + __line + ' [Policy.dynamicNode() called]');
sails.log.debug(__filename + ':' + __line + ' [Policy.dynamicNode() called]',request.headers['kong-admin-url']);


if(!request.headers['kong-admin-url']) return response.badRequest({
Expand Down
8 changes: 4 additions & 4 deletions assets/js/app/core/layout/03_layout-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,31 @@
{
state: 'info',
show : function() {
return AuthService.isAuthenticated()
return AuthService.isAuthenticated() && $rootScope.$node
},
title: 'Node info',
access: AccessLevels.user
},
{
state: 'apis',
show : function() {
return AuthService.isAuthenticated()
return AuthService.isAuthenticated() && $rootScope.$node
},
title: 'APIs',
access: AccessLevels.user
},
{
state: 'consumers',
show : function() {
return AuthService.isAuthenticated()
return AuthService.isAuthenticated() && $rootScope.$node
},
title: 'Consumers',
access: AccessLevels.user
},
{
state: 'plugins',
show : function() {
return AuthService.isAuthenticated()
return AuthService.isAuthenticated() && $rootScope.$node
},
title: 'Plugins',
access: AccessLevels.anon
Expand Down
Loading

0 comments on commit 2abc4d8

Please sign in to comment.