tlkenergy / sim-tlk

Roadmap and Issues for sim.TLK cloud based system simulation
2 stars 1 forks source link

Cannot make users an admin in Django #11

Closed Walshest closed 2 years ago

Walshest commented 2 years ago

When selecting a user to make them an admin: image

After saving it however reverts back to previous: image

We need to make Mathias Schmid and Alexander Busch admins.

PascalPadberg commented 2 years ago

They are admins now. Not sure why you weren't able to do make them admins. We'll check

magraeber commented 2 years ago

I have checked it. This read only behavior is on purpose. Admin rights should only be given from superusers (TLK). Otherwise this leads to security issues. https://realpython.com/manage-users-in-django-admin/#prevent-non-superusers-from-editing-their-own-permissions

Walshest commented 2 years ago

Hi @magraeber, We need to add another user as an admin: paul.rohmund@danfoss.com Can you let me know when this is complete please?

Walshest commented 2 years ago

Hi @PascalPadberg , Can we add admin rights for andrea.sangalli@danfoss.com please? so that he can upload and change models?

We still need a solution here of a model creator account which isn't an admin: https://github.com/tlkenergy/sim-tlk/issues/9