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

Weblate registered default user permissions #7566

Closed
2 tasks done
VygantasOBDeleven opened this issue Apr 29, 2022 · 6 comments
Closed
2 tasks done

Weblate registered default user permissions #7566

VygantasOBDeleven opened this issue Apr 29, 2022 · 6 comments
Labels
question This is more a question for the support than an issue.

Comments

@VygantasOBDeleven
Copy link

VygantasOBDeleven commented Apr 29, 2022

Describe the issue

Is there a way how can we restrict newly registered user to disallow to delete other users translation suggestions? After a good 5 hours of research, I haven't found anything in the internet nor documentation how to solve this issue.
I've enabled suggestions and suggestions voting, but I can't seem to find which user can do what. Maybe there is some kind of a default registered users roles configuration?

I am running Weblate version 4.12.

I already tried

  • I've read and searched the documentation.
  • I've searched for similar issues in this repository.

How do you run Weblate?

Docker container

Weblate versions

4.12

@VygantasOBDeleven VygantasOBDeleven added the question This is more a question for the support than an issue. label Apr 29, 2022
@github-actions
Copy link

This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger.

In case your question is already answered, making a donation is the right way to say thank you!

@nijel
Copy link
Member

nijel commented Apr 30, 2022

Each user is by default member of the "Users" group. To change the privileges, either change the group (see https://docs.weblate.org/en/latest/admin/access.html#site-wide-permission-management) or change the automatic assignment rules (see https://docs.weblate.org/en/latest/admin/access.html#automatic-group-assignments).

@burner1024
Copy link
Contributor

@nijel what do you mean by "change the group"?
As far as I can see, there's no option to change anything, Weblate's built-in groups and roles are set in stone.
Captura de pantalla de 2022-05-05 23-53-36
Captura de pantalla de 2022-05-05 23-53-43

@VygantasOBDeleven
Copy link
Author

@burner1024 I've figured it out. If you want to change the default functionality, you will need to create a custom role and group and in the group edit page in Django interface there will be an option called "Automatic group assignments"

image

The default, built-in groups and roles cannot be changed through Django interface, but you can remove those directly through the database although it is not recommended according to the Weblate documentation. What you might want to change - Automatic group assignments. There are two default groups assigned to every new user - Viewers and Users. The Viewers group doesn't contain any roles, but I can speculate that they have it hardcoded in to the code. The other group - Users contains single role - Power User. It gives users a little much out of the box so you can remove the role through the database.

@github-actions
Copy link

github-actions bot commented May 6, 2022

The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.

  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

@mig5
Copy link

mig5 commented Sep 27, 2022

@VygantasVoltasIT you might be interested to know that in Weblate 4.14.1, there's a new 'Groups' management interface in the Weblate (not Django) admin area. You are able to modify which roles are attached to the default 'Users' and 'Viewers' group, and you can also modify or delete the Automatic Assignments from that group. No more hacking around in the db!

See #7602 and the commit 8226de5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is more a question for the support than an issue.
Projects
None yet
Development

No branches or pull requests

4 participants