Commit graph

3475 commits

Author SHA1 Message Date
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
e2875adc22 Fixed permission state explanation checkboxes rendering 2022-11-13 18:21:22 +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
ffceb5abc5 Updated dependencies. 2022-11-09 23:40:42 +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
c5df176cde Added icons on server info page 2022-11-06 14:44:44 +01:00
Jan Böhmer
8a3d765157 Hide search field in navbar if user does not have the permission to view parts. 2022-11-06 01:11:08 +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
f8aee65d9e Simplified the available permissions 2022-10-31 21:13:27 +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
1013d2620d Updated dependencies. 2022-10-30 17:34:17 +01:00
Jan Böhmer
634d635c57 Updated symfony/security bundle recipe. 2022-10-22 22:13:20 +02:00
Jan Böhmer
e718e3c043 Updated doctrine-migrations recipe 2022-10-22 22:11:25 +02:00
Jan Böhmer
3c657ca959 Updated doctrine-bundle recipe 2022-10-22 22:07:57 +02:00
Jan Böhmer
6f7111f572 Updated webpack-encore recipe 2022-10-22 22:06:27 +02:00
Jan Böhmer
330f6b53ce Updated webpack encore 2022-10-22 22:03:27 +02:00
Jan Böhmer
8953f018b5 Update yarn depedencies.
This fixes the issue that search requests did not cause the url in navbar to update.
2022-10-22 21:57:30 +02:00
Jan Böhmer
86a51fc7b9 Do not use doctrine/dbal 3.5 (yet), as it has a bug with mariadb
It will always show the "sync-metadata-storage" issue.
2022-10-22 21:51:02 +02:00
Jan Böhmer
422b8d3f5d Updated composer dependencies. 2022-10-22 21:38:24 +02:00
Jan Böhmer
12f7cd9a8c Removed unnecessary git repo reference 2022-10-22 21:35:06 +02: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
e83f14f1ee Fixed exception when accessing user admin pagee 2022-10-09 21:14:00 +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
34d0381e83 Updated composer dependencies 2022-10-09 20:54:48 +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
9adebc35c5 Moved attachment_icon logic to attachment.macro.html.twig 2022-10-09 20:49:24 +02:00
Jan Böhmer
a01ed3acf6 Moved quick link logic into an macro 2022-10-09 20:39:51 +02:00
Jan Böhmer
74a563a75a Removed not needed template file 2022-10-09 20:32:34 +02:00
Jan Böhmer
38ff9bae4a Use common settings for all element history tables 2022-10-09 20:27:31 +02:00
Jan Böhmer
f50959837f Fixed issue that change of language via language selector did not changed the navbar and sidebar 2022-10-09 20:11:48 +02:00
Jan Böhmer
055752a24d Update the navbar on logout 2022-10-09 19:47:03 +02:00
Jan Böhmer
ed87f81a69 Try to fix template loading issue on linux 2022-10-05 23:24:42 +02:00