mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix shouldShowResource when not a cluster admin (#6900)
* Fix shouldShowResource when not a cluster admin Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix only tests that rely on bad formatting of resources Signed-off-by: Sebastian Malton <sebastian@malton.name> Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
841c6b5720
commit
0ec8cbd7ed
23 files changed
+45
-41
No files matched your search
@@ -34,7 +34,7 @@ export const WorkloadEvents = withInjectables<Dependencies, WorkloadEventsProps>
|
||||
getProps: (di, props) => ({
|
||||
workloadEventsAreAllowed: di.inject(shouldShowResourceInjectionToken, {
|
||||
apiName: "events",
|
||||
group: "v1",
|
||||
group: "",
|
||||
}),
|
||||
...props,
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user