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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user