user- and group management added for administrator accounts. compose … #891
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


…access control management in groups
https://github.com/louislam/dockge/blob/master/CONTRIBUTING.md
Tick the checkbox if you understand [x]:
Description
I know big pull request are not welcome but for my personal use
I needed a user- and group-management for dockge.
Now the first user has admin rights an can manage (create, delete, modify) users.
Users now have a "is_admin" attribute. If set user and group management is also accessible via the "settings" menu.
Users without "is_admin" attribute can not create new compose stacks
But with "Groups" you can assign "users" to compose stacks.
So compose stacks can only be managed by "normal" users if there are in a group that contains stacks.
If the pull request gets applied some translations must be added to https://weblate.kuma.pet/ because of some new UI elements.
I have added new variables to
frontend/src/en.jsonandfrontend/src/de.json. But I only now these two languages.Type of change
Please delete any options that are not relevant.
Checklist
(including JSDoc for methods)
Screenshots (if any)
Dockge in Agent Mode
(user: admin; is_admin: true)

User Management Menu
(user: admin; is_admin: true)

Create user Pop-Up
(user: admin; is_admin: true)

Filled User Management Table
(user: admin; is_admin: true)

Group Management Menu
(user: admin; is_admin: true)

Create Group Pop-Up
(user: admin; is_admin: true)

Filled Group Management Table
(user: admin; is_admin: true)

Manage Group Pop-Up
(user: admin; is_admin: true)

View as "normal" user
(user: peter; is_admin: false)


Please do not use any external image service. Instead, just paste in or drag and drop the image here, and it will be uploaded automatically.