Commit graph

45 commits

Author SHA1 Message Date
Jan Böhmer
0e5613b57b Forbid access to homepage if a user has no allow permission
This allows to block access to everything (even the homepage) for anonymous access. This fixes issue #290
2023-08-20 12:33:08 +02:00
Jan Böhmer
1fb334b0ca Show a notification on homepage and server info page if there is a new version available. 2023-08-04 23:49:26 +02:00
Jan Böhmer
b3153dac68 Fixed static analysis issue and added test for UserRepository 2023-08-01 16:20:31 +02:00
Jan Böhmer
d10d29e590 Do not enable the create part from provider permission automatically
This allows users to create new datastructures, which is maybe not wanted. Besides it has to be configured first.
2023-07-17 00:20:38 +02:00
Jan Böhmer
b3b205cd6e Added permissions to control access to info providers and oauth tokens 2023-07-16 20:33:24 +02:00
Jan Böhmer
d6500c45aa Use the domain name in server_name field of Google Authenticator QR code
We achieve that by decorating the GoogleAuthenticator service
2023-06-26 23:47:54 +02:00
Jan Böhmer
b7c8ca2a48 Improved typing and phpdoc type annotations 2023-06-18 15:37:42 +02:00
Jan Böhmer
e8771ea118 Fixed some more phpstan issues 2023-06-18 00:00:58 +02:00
Jan Böhmer
19530a9102 Fixed some PHPStan level 5 issues 2023-06-13 20:24:54 +02:00
Jan Böhmer
6a2ff9d153 Added declare strict types to all files 2023-06-11 18:59:07 +02:00
Jan Böhmer
684334ba22 Improved code style of tests 2023-06-11 15:02:59 +02:00
Jan Böhmer
5629215ce4 Use imports instead of FQNs 2023-06-11 15:00:28 +02:00
Jan Böhmer
f63b6d7207 Fixed service wiring configuration 2023-06-11 14:50:47 +02:00
Jan Böhmer
7ee01d9a05 Applied rector with PHP8.1 migration rules 2023-06-11 14:17:19 +02:00
Jan Böhmer
a43af180a7 Applied rector rules up to symfony 6.2 2023-05-28 01:21:05 +02:00
Jan Böhmer
1dbf36b86b Use str_contains and similar instead of strpos 2023-05-27 23:58:28 +02:00
Jan Böhmer
d04d743520 Fixed typos 2023-04-15 23:14:53 +02:00
Jan Böhmer
29d1d49aca Fixed some more inspection issues 2023-04-15 22:05:29 +02:00
Jan Böhmer
bd5ee837f4 Added permissions for importing data 2023-03-13 21:51:56 +01:00
Jan Böhmer
383fd797a3 Use current request instead of main request. 2023-01-29 13:06:21 +01:00
Jan Böhmer
beeadef853 Use the locale from the request if available, to generate cache keys
This hopefully fixes the problem with the wrong language of the tools tree in the demo.
2023-01-29 13:04:18 +01:00
Jan Böhmer
04c6d582f2 Make small user pictures hoverable to show larger version of profile picture. 2023-01-25 00:16:10 +01:00
Jan Böhmer
d06701fa87 Started to work on avatar upload from user settings page. 2023-01-24 00:57:41 +01:00
Jan Böhmer
daba6edf5d Allow to edit user avatar via user admin page. 2023-01-23 23:58:11 +01:00
Jan Böhmer
97b87dee5f Show user avatar next to its name, in all possible locations 2023-01-23 23:01:57 +01:00
Jan Böhmer
769850cec6 Added the IC logos tools from the old Part-DB version 2023-01-12 00:14:31 +01:00
Jan Böhmer
04b660d777 Finished builtin footprints viewer tool. 2023-01-09 23:40:54 +01:00
Jan Böhmer
1a3253b31a Fixed permission schema migration for PHP < 8.1 2023-01-08 22:53:32 +01:00
Jan Böhmer
7b6a906d98 Renamed "devices" permission to "projects" 2023-01-08 20:10:58 +01:00
Jan Böhmer
b2157c93e3 Fixed an exception when upgrading permissions schemas when the user has no group 2023-01-08 01:21:09 +01:00
Jan Böhmer
7aa88a8dbd Automatically upgrade permission version schema in the background when needed on a request. 2023-01-08 00:35:43 +01:00
Jan Böhmer
0e56f11b6b Added an mechanism to upgrade permissions schema (manually by calling a program) 2023-01-08 00:15:35 +01:00
Jan Böhmer
60d5776cb7 Added permission to control if a user is allowed to withdraw/add/move parts 2023-01-07 21:23:36 +01:00
Jan Böhmer
8ae4e9fe05 Fixed some inspection issues 2022-12-18 19:45:04 +01:00
Jan Böhmer
a4eae19a1f Improved organisation of Services 2022-12-18 17:28:42 +01:00
Jan Böhmer
68462185ba Removed old GPLv2 copyright header 2022-11-29 22:28:53 +01:00
Jan Böhmer
498cc07583 Added copyright/license info to files 2022-11-29 21:21:26 +01:00
Jan Böhmer
d69418bb9d Add labelprofile and devices read permission to readonly preset 2022-11-27 20:37:05 +01:00
Jan Böhmer
df11f62a2f Fixed PHPstan issues 2022-11-27 16:53:44 +01:00
Jan Böhmer
960dbdf6f6 Fixed permissions fixtures loading. 2022-11-27 16:11:20 +01:00
Jan Böhmer
a3aa8ec2ef Fixed error with loading the permissions.yaml file caused by moving of PermissionManager 2022-11-14 23:32:28 +01:00
Jan Böhmer
b0c027f805 Renamed PermissionResolver service to PermissionService 2022-11-14 20:15:06 +01:00
Jan Böhmer
c5434ba842 Moved PasswordResetManager into Services\UserSystem namespace 2022-11-14 20:04:07 +01:00
Jan Böhmer
1e106a3da1 Moved TwoFactor services into Services\UserSystem namespace 2022-11-14 20:02:58 +01:00
Jan Böhmer
1de88e0494 Added various useful presets for permissions 2022-11-14 00:02:37 +01:00