Adding SecureComponent to policy details page (#1251)

- Make Users & Policies clickeable only if user has permissions to view
  in bucket page
- Add SecureComponent to policy detail page: api calls, menu options,
  raw policy editor, etc.
- Add missing click action to groups in policy detail page
- Fix NPE in list groups for policy endpoint
- Added SecureComponent to ListPolicies page

Signed-off-by: Lenin Alevski <alevsk.8772@gmail.com>
This commit is contained in:
Lenin Alevski
2021-11-23 20:09:36 -08:00
committed by GitHub
parent 06b08593b7
commit 0ea2193878
5 changed files with 268 additions and 124 deletions

View File

@@ -308,7 +308,7 @@ func getListGroupsForPolicyResponse(session *models.Principal, policy string) ([
for _, group := range groups {
info, err := groupInfo(ctx, adminClient, group)
if err != nil {
LogError("unable to fetch group info %s: %v", group, err)
return nil, prepareError(err)
}
if info.Policy == policy {
filteredGroups = append(filteredGroups, group)