Skip to content

Commit c9bd206

Browse files
committed
compile issue
1 parent 5d2e891 commit c9bd206

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

cli/organizationroles.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,8 @@ func (r *RootCmd) editOrganizationRole() *serpent.Command {
186186

187187
customRole = *interactiveRole
188188

189-
// Only the interactive can answer prompts.
190-
totalOrg := 0
191-
for _, o := range customRole.OrganizationPermissions {
192-
totalOrg += len(o)
193-
}
194-
preview := fmt.Sprintf("permissions: %d site, %d over %d orgs, %d user",
195-
len(customRole.SitePermissions), totalOrg, len(customRole.OrganizationPermissions), len(customRole.UserPermissions))
189+
preview := fmt.Sprintf("permissions: %d site, %d org, %d user",
190+
len(customRole.SitePermissions), len(customRole.OrganizationPermissions), len(customRole.UserPermissions))
196191
_, err = cliui.Prompt(inv, cliui.PromptOptions{
197192
Text: "Are you sure you wish to update the role? " + preview,
198193
Default: "yes",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy