Commit graph

51 commits

Author SHA1 Message Date
Jan Böhmer
f5d685dfd4 Fixed coding style. 2020-05-10 21:39:31 +02:00
Jan Böhmer
0f083abdf4 Added permissions to show history of and revert label profiles. 2020-05-07 22:35:29 +02:00
Jan Böhmer
5a9be023b1 Added permissions to label system. 2020-05-04 23:21:58 +02:00
Jan Böhmer
a8a92b9c5d Added basic admin page for Label profiles. 2020-04-11 17:34:01 +02:00
Jan Böhmer
ae75e6844f Fixed coding style. 2020-04-10 13:05:08 +02:00
Jan Böhmer
b694ca8861 Fixed wrong permission name in StructureVoter. 2020-04-09 13:07:36 +02:00
Jan Böhmer
da83314d69 Fixed a wrong AccessDenied exception related to data structures
StructureVoter now can work with ProxyClasses (child classes of "our" classes)
2020-04-08 15:54:07 +02:00
Jan Böhmer
a28e81065f Fixed some more psalm issues. 2020-03-29 23:36:53 +02:00
Jan Böhmer
0fe83c7b3a Removed unused variables. 2020-03-29 22:37:27 +02:00
Jan Böhmer
fd61c8d9e2 Fixed coding style. 2020-03-15 13:56:31 +01:00
Jan Böhmer
84d268aba3 Fixed Travis errors. 2020-03-07 21:36:33 +01:00
Jan Böhmer
8a61b465d0 Check permissions for time travel and element undo. 2020-03-07 20:49:52 +01:00
Jan Böhmer
9e8771a4ee Changed license to AGPL3+ 2020-02-22 18:14:36 +01:00
Jan Böhmer
594c694ee0 Renamed the base DBElement classes to AbstractDBElement to comply with symfony recommendations. 2020-02-01 19:48:07 +01:00
Jan Böhmer
dd1f806c4e Fixed some issues detected by PHPstan. 2020-02-01 17:00:03 +01:00
Jan Böhmer
f2ff77a8b3 Fixed coding style. 2020-02-01 16:17:20 +01:00
Jan Böhmer
b0dacbf570 [EventLog] Added permission checking and link in tools tree. 2020-01-25 23:17:06 +01:00
Jan Böhmer
388e847b17 Applied symplify rules to codebase. 2020-01-05 22:49:00 +01:00
Jan Böhmer
f861de791f Applied code style rules to src/ 2020-01-05 15:46:58 +01:00
Jan Böhmer
9a7223a301 Fixed code style. 2020-01-04 20:24:09 +01:00
Jan Böhmer
b48b9b78b4 Fixed exception in ElementPermissionListener. 2019-11-16 21:40:23 +01:00
Jan Böhmer
ffdeacc2ca Revert "Cache ColumnSecurity annotation on ElementPermission Listener to improve performance."
This reverts commit 0d215e7e2f.
2019-11-16 21:39:28 +01:00
Jan Böhmer
0d215e7e2f Cache ColumnSecurity annotation on ElementPermission Listener to improve performance. 2019-11-16 21:34:21 +01:00
Jan Böhmer
977fa1df7a Cache edit/read permission on ElementPermissionListener
The many calls to voters degraded performance a lot, when querying many entities during things like part tables.
2019-11-16 21:03:59 +01:00
Jan Böhmer
bf8455fa42 Added tests on some security related classes. 2019-11-10 14:49:09 +01:00
Jan Böhmer
e557bdedd5 Added an PHP CS fixer config file and applied it to files.
We now use the same the same style as the symfony project, and it allows us to simply fix the style by executing php_cs_fixer fix in the project root.
2019-11-09 00:47:20 +01:00
Jan Böhmer
787e498586 Updated copyright headers. 2019-11-01 13:40:30 +01:00
Jan Böhmer
2187f5eac2 Allow to disable a user in admin settings.
When a user is disabled, he can not login.
2019-10-26 23:22:27 +02:00
Jan Böhmer
8cfaee5c62 Added an console command to convert the old BBCode comments to markdown 2019-10-13 00:32:09 +02:00
Jan Böhmer
ac3e5d2669 Fixed exception when try to create a new part. 2019-10-06 15:49:42 +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
3ecbe19fd6 Check read property on part entity objects. 2019-09-16 13:27:53 +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
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
856e20586f Added an admin page for the user groups. 2019-09-11 17:30:25 +02:00
Jan Böhmer
fd4b474dbd Added admin page for measurement unit. 2019-08-14 18:31:46 +02:00
Jan Böhmer
2468409212 Added an admin page for currencies. 2019-08-12 23:45:21 +02:00
Jan Böhmer
7826e3d2ad Added entities and properties for some future features. 2019-08-12 15:47:57 +02:00
Jan Böhmer
05fd753189 Allow to download and view attachments via part info page. 2019-08-10 18:06:28 +02:00
Jan Böhmer
3e7150735d Added a basic dialog for editing/creating attachmentType elements. 2019-03-28 19:24:34 +01:00
Jan Böhmer
943d235b8b Added some unit tests. 2019-03-26 23:34:40 +01:00
Jan Böhmer
df40f712a6 Get a annotaion reader by Symfony. This way the annotations get cached, and it is much faster in production. 2019-03-21 13:09:42 +01:00
Jan Böhmer
3fe452626d Fixed some inspection issues. 2019-03-20 23:24:20 +01:00
Jan Böhmer
e2f7aafa2d Used PHP_CS_Fixer with symfony preset on codebase. 2019-03-20 23:16:07 +01:00
Jan Böhmer
b5fecee465 Use ColumnSecurity for remaing part properties. 2019-03-20 22:30:03 +01:00
Jan Böhmer
47fe76b22e Added a possibility to restrict the access to certain entity columns. 2019-03-20 19:11:34 +01:00
Jan Böhmer
8d36bf913d Check permissions in edit part form. 2019-03-19 19:00:39 +01:00
Jan Böhmer
6ed2eeabae Check for permissions before showing user infos or allow the user to change its own infos. 2019-03-19 18:36:05 +01:00
Jan Böhmer
4d39d5cfb7 Use anonymous user permissions, if nobody is logged in. 2019-03-19 17:17:04 +01:00