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

Admin: manage users #44

Closed
svenseeberg opened this issue Oct 25, 2018 · 4 comments · Fixed by #149
Closed

Admin: manage users #44

svenseeberg opened this issue Oct 25, 2018 · 4 comments · Fixed by #149
Assignees
Labels
💡 feature New feature or request ❓ question Further information is requested

Comments

@svenseeberg
Copy link
Member

svenseeberg commented Oct 25, 2018

Create, edit and delete users with e-mail, login, password, site access, role assignments.

Assign users to sites.

See also #45.

@svenseeberg svenseeberg added 💡 feature New feature or request ❓ question Further information is requested labels Oct 25, 2018
@svenseeberg svenseeberg modified the milestones: Proof of Feasability, Base Functionality Oct 25, 2018
@sascha11110
Copy link
Contributor

We also need a username besides the email address

@rasmus-storjohann-PG
Copy link

You'll get most or all of this for free from cookiecutter

@timobrembeck
Copy link
Member

  • add organization model with name and thumbnail/badge
  • extend user model with:
    • many to many relation to sites (meaning all regions a user has access to or the favourite regions if the user is an administrator)
    • foreign key to organizations (so the organization's badge can be shown on every page a specific user created)
  • make use of Django's permissions (check permissions when making changes to the database)

@ulliholtgrave
Copy link
Member

Possible Django extension for that case: https://django-guardian.readthedocs.io/en/stable/userguide/check.html

timobrembeck added a commit that referenced this issue Jun 12, 2019
- Add user model, views and templates
- Add organization model, views and templates
- Create, edit and delete superusers and staff (fixes #44)
- Create, edit and delete region users (fixes #59)
- Show region switcher based on user's permissions (fixes #56)
- Show link to network management if user is superuser or staff (fixes #66)
timobrembeck added a commit that referenced this issue Jun 12, 2019
- Add user model, views and templates
- Add organization model, views and templates
- Create, edit and delete superusers and staff (fixes #44)
- Create, edit and delete region users (fixes #59)
- Show region switcher based on user's permissions (fixes #56)
- Show link to network management if user is superuser or staff (fixes #66)
timobrembeck added a commit that referenced this issue Jun 26, 2019
- Add user model, views and templates
- Add organization model, views and templates
- Create, edit and delete superusers and staff (fixes #44)
- Create, edit and delete region users (fixes #59)
- Show region switcher based on user's permissions (fixes #56)
- Show link to network management if user is superuser or staff (fixes #66)
timobrembeck added a commit that referenced this issue Jun 27, 2019
- Add user model, views and templates
- Add organization model, views and templates
- Create, edit and delete superusers and staff (fixes #44)
- Create, edit and delete region users (fixes #59)
- Show region switcher based on user's permissions (fixes #56)
- Show link to network management if user is superuser or staff (fixes #66)
timobrembeck added a commit that referenced this issue Jun 27, 2019
User management

- Add user model, views and templates
- Add organization model, views and templates
- Create, edit and delete superusers and staff (fixes #44)
- Create, edit and delete region users (fixes #59)
 - Show region switcher based on user's permissions (fixes #56)
-  Show link to network management if user is superuser or staff (fixes #66)

User-based access control for admin area and regions

 - Add @staff_required for admin area
 - Add @region_permission_required for regions
 - Decorate all views with the required function

Page creation

 - Fixed a small bug where the clean_slug method accessed fields of a form instance which didn't exist yet
@timobrembeck timobrembeck self-assigned this Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 feature New feature or request ❓ question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants