Commit graph

1601 commits

Author SHA1 Message Date
Jan Böhmer
fc1af24ef9 Do not show Zend Extensions twice in server infos page 2022-11-06 14:45:24 +01:00
Jan Böhmer
06ae136bae Hide "Show all entry" in tools sidebar if user does not have permissions to view parts. 2022-11-06 01:09:41 +01:00
Jan Böhmer
34fbcec00f Added an page to view infos about the server (Part-DB, PHP and DB config 2022-11-06 01:07:10 +01:00
Jan Böhmer
78d1dff40f Improved permission checking for certain controllers. 2022-11-05 23:49:53 +01:00
Jan Böhmer
a30b67e328 Allow to change all permissions at once via the console command. 2022-11-05 23:20:26 +01:00
Jan Böhmer
3fbc72600f Allow to edit user permissions via console command 2022-11-05 23:07:28 +01:00
Jan Böhmer
563ad21125 Added console command to view permissions of a user 2022-11-05 22:30:46 +01:00
Jan Böhmer
2f9e9c5279 Made the access to an attachment depending on the access rights of the associated elemenst 2022-11-02 23:27:44 +01:00
Jan Böhmer
676235a2d3 Fixed some exception about non existing part_attachments permission 2022-11-02 23:20:30 +01:00
Jan Böhmer
3e85fc4d42 Improved access control for part lists. 2022-10-31 23:10:21 +01:00
Jan Böhmer
d0f7949bc9 Hide trees in sidebar, if user does not have permission to show them (and protect the JSON endpoints) 2022-10-31 22:47:45 +01:00
Jan Böhmer
10a035fcea Reset the permissions of the admin user. 2022-10-31 21:54:46 +01:00
Jan Böhmer
59ddf91527 Make PermissionData an embeddable so doctrine can properly track changes to the data array 2022-10-31 21:12:01 +01:00
Jan Böhmer
687ee80255 Save permissions as JSON in user/group entities. 2022-10-30 21:51:24 +01:00
Jan Böhmer
33f8d2ba9e Merge branch 'master' into permission_rework 2022-10-30 17:35:57 +01:00
Jan Böhmer
6051c86521 Fixed exception while login 2022-10-09 22:09:43 +02:00
Jan Böhmer
afaa918ce6 Check permissions to view parts on the parts list pagees 2022-10-09 22:01:44 +02:00
Jan Böhmer
0b83d0a0b0 Allow to unset the group of a user
Fetch EAGER seems to be buggy here, so fetch the group lazily
2022-10-09 21:50:56 +02:00
Jan Böhmer
34573bb5e6 Fixed exception when accessing the group admin page 2022-10-09 21:07:51 +02:00
Jan Böhmer
04d89b38b2 Allow null value during decoding of datetimes when time traveling
This should fix some exceptions occuring when viewing historic states of a part.
2022-10-09 20:52:52 +02:00
Jan Böhmer
8fe01cf240 Prefer webauthn tfa over google auth if enabled. 2022-10-05 22:32:01 +02:00
Jan Böhmer
c1cb045960 Fixed static analyis issues 2022-10-05 21:59:42 +02:00
Jan Böhmer
9c688e22dc Allow to delete Webauthn Keys 2022-10-04 00:16:10 +02:00
Jan Böhmer
ac978abe1d Allow to register Webauthn Keys 2022-10-04 00:08:58 +02:00
Jan Böhmer
068daeda75 Use jbtronics/2fa-webauthn for u2f two factor authentication 2022-10-03 23:09:50 +02:00
Jan Böhmer
ccc99eba0c Add database indices to improve performance (SQLITE) 2022-09-25 18:48:16 +02:00
Jan Böhmer
ed91ffc60a Add database indices to improve performance 2022-09-25 18:33:13 +02:00
Jan Böhmer
c5d7f0a5b1 Do not use distinct on table queries.
This should speed up table loading a lot.
2022-09-25 14:43:15 +02:00
Jan Böhmer
86c580f835 Fixed static analysis issue 2022-09-25 02:14:28 +02:00
Jan Böhmer
4c25e85a48 Automatically update the sidebar trees for all users if the trees are changed somehow. 2022-09-25 02:08:54 +02:00
Jan Böhmer
2bd41eee60 Fixed an exception related during undeletion of elements. 2022-09-25 01:14:07 +02:00
Jan Böhmer
6a6ff152ab Fixed two factor authentication exception 2022-09-25 00:54:31 +02:00
Jan Böhmer
3d61e04e5b Added placeholders to insert Barcodes into labels without using the predefined templates. 2022-09-25 00:34:44 +02:00
Jan Böhmer
ab8be58c0d Improved styling of the label dialog editor, so that the appearance is closer to the Label result 2022-09-21 21:49:09 +02:00
Jan Böhmer
f0956da0ea Hide path badge on seletpicker items. 2022-09-21 15:33:07 +02:00
Jan Böhmer
32638777d9 Show the number of parts with this element and all its child elements in Admin pages 2022-09-21 13:20:57 +02:00
Jan Böhmer
a9642b27a6 Show error message if a sub element contains parts while recursive deletion of StructuralDBElement 2022-09-21 13:05:52 +02:00
Jan Böhmer
26cc4b4836 Fixed exception 2022-09-21 12:47:12 +02:00
Jan Böhmer
c2c768b151 Fixed some exceptions introduced earlier. 2022-09-21 12:31:32 +02:00
Jan Böhmer
d09fb3269d Merge branch 'master' into permission_rework 2022-09-18 23:45:22 +02:00
Jan Böhmer
58ada496e4 Fixed static analysis issues. 2022-09-18 23:44:44 +02:00
Jan Böhmer
8bc2c994d2 Removed ElementPermissionListener and ColumnSecurity annotationn 2022-09-18 23:38:01 +02:00
Jan Böhmer
51e05a8669 Use typed properties 2022-09-18 22:59:31 +02:00
Jan Böhmer
efa4325836 Fixed failing test 2022-09-18 18:11:18 +02:00
Jan Böhmer
a9e527ce2a Refactored TwigExtensions Part 2 2022-09-18 17:50:25 +02:00
Jan Böhmer
b078389381 Refactored TwigExtensions Part 1 2022-09-18 16:45:12 +02:00
Jan Böhmer
8338c0f2d6 Fix exception with AmountFormatter if Si prefix were enabled and no unit symbol were set.
Also this case is now prevented by Validator (as it is not very useful). Fixes issue #171.
2022-09-17 17:58:01 +02:00
Jan Böhmer
467687fd0f Make filters work on default MySQL servers to by removing the ONLY_FULL_GROUP_BY sql mode 2022-09-11 23:41:31 +02:00
Jan Böhmer
ffa804404c Set compund filter accessible for reflection to fix errors on PHP < 8.1 2022-09-11 19:18:20 +02:00
Jan Böhmer
0d0a04c36f Fixed static analysis issues. 2022-09-11 19:14:16 +02:00