Skip to content

Commit ce6594c

Browse files
committed
Do not tie debug src loading to needsPermission
Fixes node-red#1111
1 parent 75855d5 commit ce6594c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

nodes/core/core/58-debug.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ module.exports = function(RED) {
189189
}
190190
});
191191

192-
RED.httpAdmin.get("/debug/view/*",RED.auth.needsPermission("debug.read"),function(req,res) {
192+
// As debug/view/debug-utils.js is loaded via <script> tag, it won't get
193+
// the auth header attached. So do not use RED.auth.needsPermission here.
194+
RED.httpAdmin.get("/debug/view/*",function(req,res) {
193195
var options = {
194196
root: __dirname + '/lib/debug/',
195197
dotfiles: 'deny'

0 commit comments

Comments
 (0)