Restrict plugin lookups and reuse cached chat reads (Refs #98)
This commit is contained in:
@@ -82,7 +82,7 @@ describe('management route permissions', () => {
|
||||
expect(allows('super_viewer', '/api/settings/retention/preview', 'POST')).toBe(true);
|
||||
expect(allows('operator', '/api/settings/retention/preview', 'POST')).toBe(false);
|
||||
expect(allows('super_viewer', '/api/settings/retention', 'POST')).toBe(false);
|
||||
for (const route of ['/api/drift', '/api/plugins/github/release'])
|
||||
for (const route of ['/api/drift', '/api/plugins/github/release', '/api/plugins/updates'])
|
||||
for (const method of ['GET', 'HEAD'])
|
||||
expect(allows('super_viewer', route, method)).toBe(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user