fix: improve some wordings and cli table

This commit is contained in:
Michael Barz
2024-09-09 16:23:30 +02:00
parent ac26cd8035
commit 8b8aad6591
3 changed files with 3 additions and 2 deletions

View File

@@ -37,5 +37,6 @@ The output of this command includes the following information for each role:
- Description: A short description of the role.
- Enabled: Whether the role is enabled or not.
https://github.com/owncloud/ocis/pull/10013
https://github.com/owncloud/ocis/pull/9727
https://github.com/owncloud/ocis/issues/9698

View File

@@ -62,7 +62,7 @@ func listUnifiedRoles(cfg *config.Config) *cli.Command {
case 0:
rows[0] = append(rows[0], row...)
default:
rows = append(rows, append(slices.Clone(rows[0][:len(rows[0])-len(row)]), row...))
rows[0][3] = rows[0][3] + "\n" + rolePermission.GetCondition()
}
}

View File

@@ -120,7 +120,7 @@ var (
_editorListGrantsUnifiedRoleDisplayName = l10n.Template("Can edit")
// UnifiedRole SpaseEditor, Role Description (resolves directly)
_spaceEditorUnifiedRoleDescription = l10n.Template("View, download, upload, edit, add and delete.")
_spaceEditorUnifiedRoleDescription = l10n.Template("View, download, upload, edit, add, delete including the history.")
// UnifiedRole SpaseEditor, Role DisplayName (resolves directly)
_spaceEditorUnifiedRoleDisplayName = l10n.Template("Can edit")