Commit graph

1512 commits

Author SHA1 Message Date
Jan Böhmer
6b9e0b415c Removed legacy PermissionEmbed class
It was used for the old permission saving system and is not needed anymore
2022-11-14 20:20:36 +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
Jan Böhmer
5829d42968 Fixed voters. 2022-11-13 21:01:40 +01:00
Jan Böhmer
ae4cb23b18 Removed timetravel permission
Now it is sufficient enough to have the show_history permission
2022-11-13 21:01:28 +01:00
Jan Böhmer
70120bdaa9 Make allow checkbox for permissions green 2022-11-13 18:44:51 +01:00
Jan Böhmer
63a1855eb6 If a user can view parts, he is also allowed to view any subsequent datastructures.
Otherwise it is really difficult to implement permission correct part viewing.
2022-11-13 18:18:08 +01:00
Jan Böhmer
41450b8bd3 Fixed access to typeahead controllers. 2022-11-09 23:33:50 +01:00
Jan Böhmer
5e06557cf0 Removed field permissions from Part edit page 2022-11-06 21:29:03 +01:00
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