Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix outdated permissions CLI examples #1008

Merged
merged 2 commits into from
Sep 26, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions x/subspaces/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,8 @@ func GetCmdSetUserGroupPermissions() *cobra.Command {
It is mandatory to specify at least one permission to be set.
When specifying multiple permissions, they must be separated by a comma (,).`,
Example: fmt.Sprintf(`
%s tx subspaces groups set-permissions 1 1 "WRITE,MODERATE_CONTENT,SET_USER_PERMISSIONS" \
%s tx subspaces groups set-permissions 1 1 "WRITE_CONTENT,INTERACT_WITH_CONTENT,EDIT_OWN_CONTENT,MODERATE_CONTENT,
EDIT_SUBSPACE,DELETE_SUBSPACE,MANAGE_SECTIONS,MANAGE_GROUPS,SET_PERMISSIONS,EVERYTHING" \
--from alice
`, version.AppName),
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down Expand Up @@ -802,7 +803,8 @@ When specifying multiple permissions, they must be separated by a comma (,).`,
Example: fmt.Sprintf(`
%s tx subspaces set-user-permissions 1 \
desmos1463vltcqk6ql6zpk0g6s595jjcrzk4804hyqw7 \
"WRITE,MODERATE_CONTENT,SET_USER_PERMISSIONS" \
"WRITE_CONTENT,INTERACT_WITH_CONTENT,EDIT_OWN_CONTENT,MODERATE_CONTENT,
EDIT_SUBSPACE,DELETE_SUBSPACE,MANAGE_SECTIONS,MANAGE_GROUPS,SET_PERMISSIONS,EVERYTHING" \
--from alice
`, version.AppName),
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down