Commit Graph

39 Commits

Author SHA1 Message Date
Norman Jäckel
b0bc4129ce Changed GetUser view. Now it retrieves one or more users. 2021-11-30 00:30:54 +01:00
Norman Jäckel
9cd0416938 Added route to get a user e. g. for third-party applications. 2021-11-22 17:21:27 +01:00
Finn Stutzenstein
91a15d24a8
Add ALLOWED_HOSTS
the proxy responds with a 421, if a host header with an invalid host
name is encountered. If nothing is provided (see default .env) all hosts
are allowed. Examples:

ALLOWED_HOSTS="localhost:8000 127.0.0.1:8000"

ALLOWED_HOSTS="some.domain.example.com"

Add EXTERNAL_HTTPS_PORT. See .env for the configuration.
2021-04-26 16:01:35 +02:00
Finn Stutzenstein
f9d19db9e2
Update black 2021-04-26 09:00:04 +02:00
Emanuel Schütze
7315626e18
Merge pull request #6024 from jsangmeister/vote-delegaton-error
Fix vote delegation update error
2021-04-22 21:10:30 +02:00
Joshua Sangmeister
e2d4fafe6d Fix vote delegation update error 2021-04-22 20:51:44 +02:00
Finn Stutzenstein
a8e329253c
Validate the from email for invalid characters
This might not be sufficient for all cases. If some other strange
IndexErrors appear, more validation has to be done. For now, it catches
all observed cases.
2021-04-22 12:33:33 +02:00
Finn Stutzenstein
e3c627b504
Update dependencies
Update DRF to resolve https://github.com/advisories/GHSA-fx83-3ph3-9j2q

-> https://www.django-rest-framework.org/community/3.9-announcement/
replaces `list_route` and `detail_route`

Update autoupdate submodule
2021-04-12 13:36:46 +02:00
Finn Stutzenstein
a1e7920b34
Small fixes 2021-04-12 07:52:47 +02:00
Emanuel Schütze
bd29777d83 Updated translations 2021-03-19 14:20:15 +01:00
Finn Stutzenstein
a48fe86791
Add login errors for inactive users 2021-03-19 07:35:45 +01:00
Finn Stutzenstein
365d0d55ea
Merge pull request #5937 from FinnStutzenstein/deleteUnusedCode
Delete unused code
2021-03-15 14:52:04 +01:00
Finn Stutzenstein
3ba4f99876
Delete unused code
@oscar: Only the user restricter is still present in the code since it is needed for whoami
2021-03-08 08:57:21 +01:00
Finn Stutzenstein
d0c1879521
Update users on can_see_extra_data permission change 2021-03-04 08:20:05 +01:00
Finn Stutzenstein
4929e2b6f6 Change chat access groups
Adjust some client chat feature

- Cleanup some stuff
- Read and write chatting
2021-02-19 15:08:02 +01:00
Finn Stutzenstein
8e5b1fa99d Add Chat on Server and client as draft 2021-02-09 16:07:52 +01:00
Finn Stutzenstein
8049bfa91e
Performance improvements for OS3+
- Cleans up log messages in the client
- Refactored the autoupdate bundle code into an own file
- Added bulk creates for History in Postgresql. This is the only database system
  that supports returning all ids whan multiple elements are inserted. We can
  make usage out of it.
- Added a `disable_history`, that is request-wide
- Disabled history on poll vote requests
- Removed unnecessary user ordering
- Reduced the queries for creating motion vote objects by one
- removed final_data: This was not prefetched. Using the normal data collection
  the data is prefetched
- removed unnecessary user query if vore delegation is not used
2021-01-21 12:53:51 +01:00
FinnStutzenstein
e225a57f97
OpenSlides3+: External Autoupdate Service
- Removing channels. Going back to a wsgi deployment
- Removed server projector code
- Autoupdate throttling is now in the client
- New communication stack in the client
- Adopted all deployment methods: Docker stack and docker compose (prod and dev)
- Added autoupdate service as submodule
2021-01-14 07:55:41 +01:00
Finn Stutzenstein
b0ba30b454
Fix vote_delegated_from_user_ids on user update 2021-01-08 08:24:34 +01:00
Emanuel Schütze
227dfd0c26 Updated translations 2020-12-17 10:30:46 +01:00
Finn Stutzenstein
ef42a2293d
Adjust restricter, so poll managers can see the delegation structure 2020-12-10 09:20:50 +01:00
Finn Stutzenstein
e1183fff60
Fix error handling in WhoAmI data view 2020-11-30 13:00:03 +01:00
Emanuel Schütze
c323eabd6f
Merge pull request #5727 from FinnStutzenstein/enableIsPresentBulkForSAMLUsers
Enable bulk set presence for non-default auth type users
2020-11-25 15:30:13 +01:00
Finn Stutzenstein
0a67c24138
Enable bulk set presence for non-default auth type users
closes #5715
2020-11-25 15:06:17 +01:00
Finn Stutzenstein
4f24a38da8
Hotfix user restrictor. Wrong usage of set's add method 2020-11-25 12:04:24 +01:00
Finn Stutzenstein
f609e6362f
Fix group deletion for config variables 2020-11-24 13:43:05 +01:00
Finn Stutzenstein
38534d4e01
Include vote_delegated_from_users_id in required users (#5706)
* Include vote_delegated_from_users_id in required users

* Fix restrictors if users do not have base perms

* Fix from username building in the projector
2020-11-18 08:14:33 +01:00
Finn Stutzenstein
0956153ea4
Create initial user command 2020-10-28 08:22:32 +01:00
Finn Stutzenstein
266f9b73e9
Merge pull request #5639 from FinnStutzenstein/useCacheInManagementCommands
Use cache in management commands
2020-10-28 08:20:01 +01:00
Finn Stutzenstein
d4577ed8aa
Merge pull request #5656 from FinnStutzenstein/SmtpException
Improve reporting of SMTP exception
2020-10-28 08:18:43 +01:00
Finn Stutzenstein
1dd86a29be
Improve reporting of SMTP exception 2020-10-27 07:59:37 +01:00
Manfred Löbling
2b5abf72a4 no exclustion of SAML Users on bulk-alter-group 2020-10-25 20:25:43 +01:00
Finn Stutzenstein
ca56b4f8b4
Use cache in management commands
This requires to have a correct setup when using these commands
2020-10-19 15:29:59 +02:00
Finn Stutzenstein
f809db0430
Attempt to fix some tracebacks 2020-10-08 10:28:27 +02:00
Emanuel Schütze
21990aa568
Merge pull request #5602 from FinnStutzenstein/addDemoModeToDocker
Add demo mode to all docker setups
2020-10-07 23:30:35 +02:00
Finn Stutzenstein
fd2fd8d73a Add demo mode to all docker setups 2020-10-07 16:50:08 +02:00
Joshua Sangmeister
3ac8569712
Add vote delegation on server side
Add user_has_voted_for_delegations. Add tests

Prevent self delegation

Make delegated_user visible
2020-09-30 14:05:22 +02:00
Sean
ec13ab56e8 Implement cinema mode
Implements a viewer mode containing the most important information and
Heavily refactors ListOfSpeaker and CurrentListOfSpeaker
interaction heavy components on a single view:

Current List of Speakers
Currently Open Polls
Current projector

Permission in migration
2020-09-17 18:38:57 +02:00
FinnStutzenstein
2bcab5d098
Repository restructure
- moved all server related things into the folder `server`, so this
configuration is parallel to the client.
- All main "services" are now folders in the root directory
- Added Dockerfiles to each service (currently server and client)
- Added a docker compose configuration to start everything together.
Currently there are heavy dependencies into https://github.com/OpenSlides/openslides-docker-compose
- Resturctured the .gitignore. If someone needs something excluded,
please add it to the right section.
- Added initial build setup with Docker and docker-compose.
- removed setup.py. We won't deliver OpenSlides via pip anymore.
2020-08-21 08:11:13 +02:00