mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Permit login with blank scope
Required for the editor, which doesn't know the appropriate scope for the user logging in. The user will adopt their default permission scope once logged in.
This commit is contained in:
@@ -40,5 +40,9 @@ describe("Auth permissions", function() {
|
||||
permissions.hasPermission("read",["foo.read","foo.write"]).should.be.false;
|
||||
permissions.hasPermission("read",["foo.read","bar.read"]).should.be.true;
|
||||
});
|
||||
it('permits an empty permission', function() {
|
||||
permissions.hasPermission("*","").should.be.true;
|
||||
permissions.hasPermission("read",[""]).should.be.true;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user