RBAC: Validate plugin app access permission targets the plugin (#59468)
* RBAC: Validate plugin app access permission targets the plugin * Fix service test
This commit is contained in:
@@ -189,7 +189,7 @@ func TestService_DeclarePluginRoles(t *testing.T) {
|
||||
Role: plugins.Role{
|
||||
Name: "Tester",
|
||||
Permissions: []plugins.Permission{
|
||||
{Action: "plugins.app:access"},
|
||||
{Action: "plugins.app:access", Scope: "plugins:id:test-app"},
|
||||
{Action: "test-app:read"},
|
||||
{Action: "test-app.resource:read"},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user