Commit graph

2644 commits

Author SHA1 Message Date
Jan Böhmer
2e318f9ea1 Disable attachments form if user is not allowed to edit the element. 2019-09-24 18:41:53 +02:00
Jan Böhmer
67fe47bbb9 Generate internal filenames based on attachment name.
The filename of the uploaded file is now safed in the database.
2019-09-24 18:39:11 +02:00
Jan Böhmer
eb1d8fd4e4 Added possibility to add/edit attachments on Admin pages. 2019-09-24 18:28:35 +02:00
Jan Böhmer
97cb91a3b2 Implement new attachment property in its getters/setters. 2019-09-24 16:36:41 +02:00
Jan Böhmer
ba4bf4b613 When migrate footprints, replace the %BASE% pathes with %FOOTPRINT%
This helps us to make the internal footprints and 3D models more portable.
2019-09-24 16:20:19 +02:00
Jan Böhmer
9d73cc0869 Fixed exception on login. 2019-09-24 16:09:54 +02:00
Jan Böhmer
4047125c6e Added an SQL migration to migrate from footprint filepath to attachments 2019-09-24 15:44:55 +02:00
Jan Böhmer
ccc345cd1b Changed DB structure the way, many more elements can have attachments
Also every Element has now a preview attachment field. For the user this will be used as profile picture.
2019-09-24 13:39:49 +02:00
Jan Böhmer
5061c29872 Added psalm to dev dependencies. 2019-09-23 13:29:51 +02:00
Jan Böhmer
8cdec02a01 Use PHPUnit 7.5 for tests 2019-09-23 13:17:53 +02:00
Jan Böhmer
9ee5dd9523 Test against PHP 7.4 and PHP 8 snapshot.
Both versions are not finished yet, so we allow failures for them.
2019-09-23 13:01:37 +02:00
Jan Böhmer
a97d016740 Added some more tests.
Also changed the behavior of some code to meet the expectation.
2019-09-22 23:47:40 +02:00
Jan Böhmer
322778af68 Fixed deprecation for configuration treeBuilder. 2019-09-22 21:43:21 +02:00
Jan Böhmer
00b19732cc Fixed error in tests. 2019-09-22 21:35:22 +02:00
Jan Böhmer
e78033d774 Treat all image formats that browsers can show correctly as image attachments.
Especially we can now use WebP for attachments.
2019-09-22 21:25:06 +02:00
Jan Böhmer
e4f5afb628 Fixed typescript exception about missing js-cookie library. 2019-09-20 16:24:49 +02:00
Jan Böhmer
10ec2adc66 Use localstorage instead of Cookies to save tree state.
That way we dont need to include the cookie js lib and save some memory.
2019-09-20 14:04:06 +02:00
Jan Böhmer
7f6c9b614f Added an button to hide the sidebar.
Feature wished by Mr.AtiX. That way you can view tables in full screen.
2019-09-20 13:55:52 +02:00
Jan Böhmer
1301459718 Redirect user after login to user settings, if he needs to change password. 2019-09-19 14:48:49 +02:00
Jan Böhmer
a8612d9609 Forbid to delete the anonymous user. 2019-09-19 13:49:10 +02:00
Jan Böhmer
006cd9c7e5 Allow admins to set passwords in users admin page. 2019-09-19 12:35:28 +02:00
Jan Böhmer
694beca825 Allow admins to change the users configuration via the admin menu. 2019-09-19 12:12:12 +02:00
Jan Böhmer
d935e625d3 Upgraded yarn dependencies. 2019-09-19 11:54:49 +02:00
Jan Böhmer
1a0e5408af Removed bootstrap aweseome checkbox
We now use Bootstrap 4's custom controls.
2019-09-18 18:40:59 +02:00
Jan Böhmer
2d34649ae6 Allow user to set a currency in which every price is shown for him. 2019-09-18 18:17:17 +02:00
Jan Böhmer
01da705b54 Collect backtrace for each doctrine query. 2019-09-18 17:53:48 +02:00
Jan Böhmer
f36b95c351 Fixed deprecation for twig base.html.twig template
Using the filter tag is deprecated, replaced with apply tag which does the same thing.
2019-09-18 16:22:09 +02:00
Jan Böhmer
2441a25daa Enforce packages with compatibility with the minimum supported PHP version. 2019-09-18 16:06:51 +02:00
Jan Böhmer
842ee145bc Check also inheritance in type checking of isChild to prevent exceptions 2019-09-18 12:48:27 +02:00
Jan Böhmer
2cfad83ee8 Fixed problem that history url was not updated after pop state. 2019-09-17 22:59:18 +02:00
Jan Böhmer
edabaeaced Keep the opened tab open after submit or reload of a page.
Also we can now jump to tabs using a hash link, which is useful, for editing quickjumps.
2019-09-17 22:43:33 +02:00
Jan Böhmer
c94d3cdc68 Explicitly set that our utc datetypes does not need an comment
This fixes an deprecation warning.
2019-09-17 14:02:30 +02:00
Jan Böhmer
3d790db559 Fixed orphanRemoval problem with parts collection.
Also ElementPermissionListener was improved, and multiple special cases were unified.
2019-09-17 13:57:40 +02:00
Jan Böhmer
7a9bfdf7f9 Added an comment about the recursive array_merge. 2019-09-16 22:23:02 +02:00
Jan Böhmer
21a81486df Fixed some inspection issues. 2019-09-16 22:04:59 +02:00
Jan Böhmer
f7c2f1032f Split Part entity class into multiple traits.
The part class has become very big and clumsy, that way it should be easier to maintain this entity...
2019-09-16 21:40:47 +02:00
Jan Böhmer
3ecbe19fd6 Check read property on part entity objects. 2019-09-16 13:27:53 +02:00
Jan Böhmer
44bad9029b Hide nodes in tools menu, for which the user does not have permissions. 2019-09-13 19:58:38 +02:00
Jan Böhmer
a078eef649 Show the permissions a user have on the user info page. 2019-09-13 19:38:22 +02:00
Jan Böhmer
1f005b25f7 Set useful default permission values for the default groups, when migrating. 2019-09-13 19:04:48 +02:00
Jan Böhmer
3374153b73 Added permission checking for part price edit page. 2019-09-13 17:46:26 +02:00
Jan Böhmer
da14ee942d Added permissions for the new functions. 2019-09-13 17:13:58 +02:00
Jan Böhmer
d2bae3a4f2 Use the users timezone for showing dates from the database.
In the database the values are now saved in UTC.
2019-09-12 22:16:33 +02:00
Jan Böhmer
adf5db1a0a Fixed redirection, when no locale and no valid path were given 2019-09-12 21:41:38 +02:00
Jan Böhmer
6e74eb8276 Match only valid locales for localized routes. 2019-09-12 18:30:12 +02:00
Jan Böhmer
0bfcec77fb Use language setting of users when logging in. 2019-09-12 17:50:33 +02:00
Jan Böhmer
0dd20394cb Fixed an error that prevented to create a new user.
Also added some validation constraints.
2019-09-11 19:04:09 +02:00
Jan Böhmer
90d449ea22 Prevent a user from lock itself out from the user system. 2019-09-11 18:50:23 +02:00
Jan Böhmer
856e20586f Added an admin page for the user groups. 2019-09-11 17:30:25 +02:00
Jan Böhmer
959e79b9fb Use better card title for user editing. 2019-09-11 17:04:08 +02:00